Exception: McpToolkit::Protocol::MethodNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/mcp_toolkit/protocol.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #data

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(method_name, data: nil) ⇒ MethodNotFound

Returns a new instance of MethodNotFound.



72
73
74
# File 'lib/mcp_toolkit/protocol.rb', line 72

def initialize(method_name, data: nil)
  super("Method not found: #{method_name}", code: ErrorCodes::METHOD_NOT_FOUND, data:)
end