Exception: MCPClient::Errors::TransientServerError

Inherits:
ServerError show all
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.

Instance Attribute Summary

Attributes inherited from ServerError

#code, #data, #http_status

Instance Method Summary collapse

Methods inherited from ServerError

from_jsonrpc, #initialize, #modern_http_protocol_error?, #modern_protocol_error?, #modern_protocol_error_for_probe?, #protocol_error?, #well_formed?

Constructor Details

This class inherits a constructor from MCPClient::Errors::ServerError

Instance Method Details

#era_inconclusive? ⇒ Boolean

Returns a 5xx means the request did not complete: it identifies neither a modern nor a legacy server.

Returns:

  • (Boolean) —

    a 5xx means the request did not complete: it identifies neither a modern nor a legacy server



493
494
495
# File 'lib/mcp_client/errors.rb', line 493

def era_inconclusive?
  true
end