Exception: Kreuzberg::Errors::OCRError

Inherits:
Error
  • Object
show all
Defined in:
lib/kreuzberg/errors.rb

Overview

Raised when OCR processing fails

Instance Attribute Summary collapse

Attributes inherited from Error

#error_code, #panic_context

Instance Method Summary collapse

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(message, context: nil, panic_context: nil, error_code: nil)
  super(message, panic_context:, error_code:)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



90
91
92
# File 'lib/kreuzberg/errors.rb', line 90

def context
  @context
end