Exception: VectorMCP::RateLimitExceededError
- Inherits:
-
ServerError
- Object
- StandardError
- Error
- ProtocolError
- ServerError
- VectorMCP::RateLimitExceededError
- Defined in:
- lib/vector_mcp/errors.rb
Overview
Represents an authentication attempt blocked by the configured limiter (-32029).
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from ProtocolError
#code, #details, #message, #request_id
Instance Method Summary collapse
-
#initialize(message = "Too many authentication attempts", retry_after:, request_id: nil) ⇒ RateLimitExceededError
constructor
A new instance of RateLimitExceededError.
Constructor Details
#initialize(message = "Too many authentication attempts", retry_after:, request_id: nil) ⇒ RateLimitExceededError
Returns a new instance of RateLimitExceededError.
207 208 209 210 211 212 213 214 215 |
# File 'lib/vector_mcp/errors.rb', line 207 def initialize( = "Too many authentication attempts", retry_after:, request_id: nil) @retry_after = retry_after super( , code: -32_029, details: { retry_after: retry_after }, request_id: request_id ) end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
202 203 204 |
# File 'lib/vector_mcp/errors.rb', line 202 def retry_after @retry_after end |