Exception: VectorMCP::InternalError

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

Overview

Represents a JSON-RPC Internal error (-32603). Indicates an internal error in the JSON-RPC server.

Instance Attribute Summary

Attributes inherited from ProtocolError

#code, #details, #message, #request_id

Instance Method Summary collapse

Constructor Details

#initialize(message = "Internal error", details: nil, request_id: nil) ⇒ InternalError

Returns a new instance of InternalError.

Parameters:

  • message (String) (defaults to: "Internal 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.



93
94
95
# File 'lib/vector_mcp/errors.rb', line 93

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