Exception: Textus::MCP::ToolError

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/mcp/errors.rb

Overview

Tool execution failed (validation, authorization, IO). Wraps an underlying Textus::Error or generic StandardError.

Constant Summary collapse

JSONRPC_CODE =
-32_000

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Methods inherited from Error

#to_envelope

Constructor Details

#initialize(message, details: {}) ⇒ ToolError

Returns a new instance of ToolError.



27
28
29
# File 'lib/textus/mcp/errors.rb', line 27

def initialize(message, details: {})
  super("tool_error", message, details: details)
end