Exception: Kreuzberg::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Kreuzberg::Errors::Error
- Defined in:
- lib/kreuzberg/errors.rb
Overview
Base error class for all Kreuzberg errors
Direct Known Subclasses
APIProxy::Error, CLIProxy::Error, CancelledError, EmbeddingError, IOError, MissingDependencyError, OCRError, ParsingError, PluginError, UnsupportedFormatError, ValidationError, MCPProxy::Error
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#panic_context ⇒ Object
readonly
Returns the value of attribute panic_context.
Instance Method Summary collapse
-
#initialize(message, panic_context: nil, error_code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, panic_context: nil, error_code: nil) ⇒ Error
Returns a new instance of Error.
68 69 70 71 72 |
# File 'lib/kreuzberg/errors.rb', line 68 def initialize(, panic_context: nil, error_code: nil) super() @panic_context = panic_context @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
66 67 68 |
# File 'lib/kreuzberg/errors.rb', line 66 def error_code @error_code end |
#panic_context ⇒ Object (readonly)
Returns the value of attribute panic_context.
66 67 68 |
# File 'lib/kreuzberg/errors.rb', line 66 def panic_context @panic_context end |