Exception: VectorMCP::MethodNotFoundError

Inherits:
ProtocolError show all
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

Constructor Details

#initialize(method, details: nil, request_id: nil) ⇒ MethodNotFoundError

Returns a new instance of MethodNotFoundError.

Parameters:

  • method (String)

    The name of the method that was not found.

  • details (Hash, nil) (defaults to: nil)

    Additional details for the error (optional).

  • request_id (String, Integer, nil) (defaults to: nil)

    The ID of the originating request.



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