Exception: Leann::LLMError
Overview
Raised when LLM request fails
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(message, provider: nil, original_error: nil) ⇒ LLMError
constructor
A new instance of LLMError.
Constructor Details
#initialize(message, provider: nil, original_error: nil) ⇒ LLMError
Returns a new instance of LLMError.
45 46 47 48 49 |
# File 'lib/leann/errors.rb', line 45 def initialize(, provider: nil, original_error: nil) @provider = provider @original_error = original_error super() end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
43 44 45 |
# File 'lib/leann/errors.rb', line 43 def original_error @original_error end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
43 44 45 |
# File 'lib/leann/errors.rb', line 43 def provider @provider end |