Exception: VectorMCP::NotFoundError
- Inherits:
-
ProtocolError
- Object
- StandardError
- Error
- ProtocolError
- VectorMCP::NotFoundError
- Defined in:
- lib/vector_mcp/errors.rb
Overview
Represents an error indicating a requested resource or entity was not found (-32001). Note: This uses a code typically outside the strict JSON-RPC server error range, but is common in practice for "Not Found" scenarios.
Instance Attribute Summary
Attributes inherited from ProtocolError
#code, #details, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = "Not Found", details: nil, request_id: nil) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Not Found", details: nil, request_id: nil) ⇒ NotFoundError
Returns a new instance of NotFoundError.
133 134 135 136 |
# File 'lib/vector_mcp/errors.rb', line 133 def initialize( = "Not Found", details: nil, request_id: nil) VectorMCP.logger.debug("Initializing NotFoundError with code: -32001") super(, code: -32_001, details: details, request_id: request_id) end |