Exception: X::ServerError

Inherits:
HTTPError show all
Defined in:
x-core/lib/x/core/errors/server_error.rb

Overview

The base class of the errors of a 5xx response, which the API failed to answer

The request is not the reason it failed, so the same request may pass later. A client given a max_retries above zero sends an idempotent request again after one, waiting a little longer before each attempt.

Examples:

Retry a request the API failed to answer

client = X::Client.new(bearer_token: token, max_retries: 2)

Constructor Details

This class inherits a constructor from X::HTTPError