Exception: Textus::Surfaces::MCP::ToolError
- Defined in:
- lib/textus/surfaces/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
Instance Method Summary collapse
-
#initialize(message, details: {}) ⇒ ToolError
constructor
A new instance of ToolError.
Methods inherited from Error
#details, #exit_code, #hint, #to_envelope
Constructor Details
#initialize(message, details: {}) ⇒ ToolError
Returns a new instance of ToolError.
28 29 30 |
# File 'lib/textus/surfaces/mcp/errors.rb', line 28 def initialize(, details: {}) super("tool_error", , details: details) end |