Exception: MCPClient::Errors::TransientServerError
- Inherits:
-
ServerError
- Object
- StandardError
- MCPError
- ServerError
- MCPClient::Errors::TransientServerError
- Defined in:
- lib/mcp_client/errors.rb
Overview
Raised for a server-side failure that is plausibly transient and safe to
retry — chiefly HTTP 5xx responses, where the request likely did not
complete at the application layer. It is a subclass of ServerError so that
existing rescue MCPClient::Errors::ServerError handlers keep catching it,
while the retry logic can single it out. Application-level failures
(JSON-RPC error responses, HTTP 4xx) use plain ServerError and are NOT
retried, since the server already processed/rejected the request.