Exception: Textus::Surfaces::MCP::ToolError

Inherits:
Error
  • Object
show all
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

#code

Instance Method Summary collapse

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(message, details: {})
  super("tool_error", message, details: details)
end