Exception: VectorMCP::MethodNotFoundError
- Inherits:
-
ProtocolError
- Object
- StandardError
- Error
- ProtocolError
- VectorMCP::MethodNotFoundError
- Defined in:
- lib/vector_mcp/errors.rb
Overview
Represents a JSON-RPC Method Not Found error (-32601). Indicates the method does not exist or is not available.
Instance Attribute Summary
Attributes inherited from ProtocolError
#code, #details, #message, #request_id
Instance Method Summary collapse
-
#initialize(method, details: nil, request_id: nil) ⇒ MethodNotFoundError
constructor
A new instance of MethodNotFoundError.
Constructor Details
#initialize(method, details: nil, request_id: nil) ⇒ MethodNotFoundError
Returns a new instance of MethodNotFoundError.
70 71 72 73 |
# File 'lib/vector_mcp/errors.rb', line 70 def initialize(method, details: nil, request_id: nil) details ||= { method_name: method } super("Method not found: #{method}", code: -32_601, details: details, request_id: request_id) end |