Exception: Kreuzberg::Errors::ParsingError

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

Overview

Raised when document parsing 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) ⇒ ParsingError

Returns a new instance of ParsingError.



82
83
84
85
# File 'lib/kreuzberg/errors.rb', line 82

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.



80
81
82
# File 'lib/kreuzberg/errors.rb', line 80

def context
  @context
end