Exception: RobotLab::ToolError

Inherits:
Error
  • Object
show all
Defined in:
lib/robot_lab/error.rb

Overview

Raised when a tool fails during execution, including inside a Ractor worker.

Examples:

raise ToolError.new("Tool 'MyTool' failed: division by zero")

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, retryable: nil) ⇒ ToolError

Returns a new instance of ToolError.



88
89
90
91
# File 'lib/robot_lab/error.rb', line 88

def initialize(message = nil, retryable: nil)
  @retryable = retryable
  super(message)
end

Instance Attribute Details

#retryableObject (readonly)

Returns the value of attribute retryable.



86
87
88
# File 'lib/robot_lab/error.rb', line 86

def retryable
  @retryable
end