Exception: VectorMCP::ParseError

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

Overview

Represents a JSON-RPC Parse error (-32700). Indicates invalid JSON was received by the server.

Instance Attribute Summary

Attributes inherited from ProtocolError

#code, #details, #message, #request_id

Instance Method Summary collapse

Constructor Details

#initialize(message = "Parse error", details: nil, request_id: nil) ⇒ ParseError

Returns a new instance of ParseError.

Parameters:

  • message (String) (defaults to: "Parse error")

    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.



48
49
50
# File 'lib/vector_mcp/errors.rb', line 48

def initialize(message = "Parse error", details: nil, request_id: nil)
  super(message, code: -32_700, details: details, request_id: request_id)
end