Exception: Kreuzberg::Errors::OCRError
- Defined in:
- lib/kreuzberg/errors.rb
Overview
Raised when OCR processing fails
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, context: nil, panic_context: nil, error_code: nil) ⇒ OCRError
constructor
A new instance of OCRError.
Constructor Details
#initialize(message, context: nil, panic_context: nil, error_code: nil) ⇒ OCRError
Returns a new instance of OCRError.
92 93 94 95 |
# File 'lib/kreuzberg/errors.rb', line 92 def initialize(, context: nil, panic_context: nil, error_code: nil) super(, panic_context:, error_code:) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
90 91 92 |
# File 'lib/kreuzberg/errors.rb', line 90 def context @context end |