Exception: Agentic::Errors::LlmNetworkError
- Defined in:
- lib/agentic/errors/llm_error.rb
Overview
Error raised when there’s a connection or network issue
Instance Attribute Summary collapse
-
#network_exception ⇒ Exception
readonly
The original network exception.
Attributes inherited from LlmError
Instance Method Summary collapse
-
#initialize(message, network_exception: nil, context: nil) ⇒ LlmNetworkError
constructor
A new instance of LlmNetworkError.
-
#retryable? ⇒ Boolean
Whether this error is retryable.
Constructor Details
#initialize(message, network_exception: nil, context: nil) ⇒ LlmNetworkError
Returns a new instance of LlmNetworkError.
94 95 96 97 |
# File 'lib/agentic/errors/llm_error.rb', line 94 def initialize(, network_exception: nil, context: nil) super(, context: context) @network_exception = network_exception end |
Instance Attribute Details
#network_exception ⇒ Exception (readonly)
Returns The original network exception.
89 90 91 |
# File 'lib/agentic/errors/llm_error.rb', line 89 def network_exception @network_exception end |
Instance Method Details
#retryable? ⇒ Boolean
Returns Whether this error is retryable.
100 101 102 |
# File 'lib/agentic/errors/llm_error.rb', line 100 def retryable? true end |