Exception: Parse::Agent::ToolTimeoutError
- Inherits:
-
AgentError
- Object
- StandardError
- AgentError
- Parse::Agent::ToolTimeoutError
- Defined in:
- lib/parse/agent/errors.rb
Overview
Timeout errors for long-running operations
Instance Attribute Summary collapse
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, timeout) ⇒ ToolTimeoutError
constructor
A new instance of ToolTimeoutError.
Constructor Details
#initialize(tool_name, timeout) ⇒ ToolTimeoutError
Returns a new instance of ToolTimeoutError.
28 29 30 31 32 |
# File 'lib/parse/agent/errors.rb', line 28 def initialize(tool_name, timeout) @tool_name = tool_name @timeout = timeout super("Tool '#{tool_name}' timed out after #{timeout} seconds") end |
Instance Attribute Details
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
26 27 28 |
# File 'lib/parse/agent/errors.rb', line 26 def timeout @timeout end |
#tool_name ⇒ Object (readonly)
Returns the value of attribute tool_name.
26 27 28 |
# File 'lib/parse/agent/errors.rb', line 26 def tool_name @tool_name end |