Exception: VectorMCP::ForbiddenError

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

Overview

Represents an authorization failed error (-32403). Indicates the authenticated user does not have permission to perform the requested action.

Instance Attribute Summary

Attributes inherited from ProtocolError

#code, #details, #message, #request_id

Instance Method Summary collapse

Constructor Details

#initialize(message = "Access denied", details: nil, request_id: nil) ⇒ ForbiddenError

Returns a new instance of ForbiddenError.

Parameters:

  • message (String) (defaults to: "Access denied")

    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.



200
201
202
# File 'lib/vector_mcp/errors.rb', line 200

def initialize(message = "Access denied", details: nil, request_id: nil)
  super(message, code: -32_403, details: details, request_id: request_id)
end