Exception: AgentHarness::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AgentHarness::Error
- Defined in:
- lib/agent_harness/errors.rb,
lib/agent_harness.rb
Overview
Base error class for all AgentHarness errors
Direct Known Subclasses
AuthenticationError, CircuitOpenError, CommandExecutionError, ConfigurationError, NoProvidersAvailableError, ProviderError, RateLimitError, TimeoutError
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(message = nil, original_error: nil, context: {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, original_error: nil, context: {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/agent_harness/errors.rb', line 8 def initialize( = nil, original_error: nil, context: {}) @original_error = original_error @context = context super() end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/agent_harness/errors.rb', line 6 def context @context end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
6 7 8 |
# File 'lib/agent_harness/errors.rb', line 6 def original_error @original_error end |