Exception: RobotLab::MCPError

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

Overview

Raised when MCP communication fails.

Examples:

raise MCPError.new("Connection to MCP server refused", retryable: true)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MCPError.



37
38
39
40
# File 'lib/robot_lab/error.rb', line 37

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

Instance Attribute Details

#retryableObject (readonly)

Returns the value of attribute retryable.



35
36
37
# File 'lib/robot_lab/error.rb', line 35

def retryable
  @retryable
end