Exception: VectorMCP::SamplingRejectedError

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

Overview

Raised if the client explicitly rejects or denies the sampling request (e.g., user vetoed). This would typically correspond to a specific error response from the client.

Instance Attribute Summary

Attributes inherited from ProtocolError

#code, #details, #message, #request_id

Instance Method Summary collapse

Constructor Details

#initialize(message = "Client rejected the sampling request.", code: -32_052,, details: nil, request_id: nil) ⇒ SamplingRejectedError

Returns a new instance of SamplingRejectedError.



165
166
167
168
# File 'lib/vector_mcp/errors.rb', line 165

def initialize(message = "Client rejected the sampling request.", code: -32_052, details: nil, request_id: nil)
  # This code might be overridden by the actual error code from the client if available.
  super
end