Exception: VectorMCP::SamplingRejectedError
- Inherits:
-
SamplingError
- Object
- StandardError
- Error
- ProtocolError
- SamplingError
- VectorMCP::SamplingRejectedError
- 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
-
#initialize(message = "Client rejected the sampling request.", code: -32_052,, details: nil, request_id: nil) ⇒ SamplingRejectedError
constructor
A new instance of SamplingRejectedError.
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( = "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 |