Exception: VectorMCP::InvalidParamsError

Inherits:
ProtocolError show all
Defined in:
lib/vector_mcp/errors.rb

Overview

Represents a JSON-RPC Invalid Params error (-32602). Indicates invalid method parameter(s).

Instance Attribute Summary

Attributes inherited from ProtocolError

#code, #details, #message, #request_id

Instance Method Summary collapse

Constructor Details

#initialize(message = "Invalid params", details: nil, request_id: nil) ⇒ InvalidParamsError

Returns a new instance of InvalidParamsError.

Parameters:

  • message (String) (defaults to: "Invalid params")

    The error message.

  • 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.



82
83
84
# File 'lib/vector_mcp/errors.rb', line 82

def initialize(message = "Invalid params", details: nil, request_id: nil)
  super(message, code: -32_602, details: details, request_id: request_id)
end