Exception: Pago::V2026_04::Errors::ExpiredCheckoutError
- Inherits:
-
GoneError
- Object
- StandardError
- Error
- APIError
- ClientError
- GoneError
- Pago::V2026_04::Errors::ExpiredCheckoutError
- Defined in:
- lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs
Overview
The checkout session is expired. Raised on HTTP 410.
Constant Summary collapse
- STATUS_CODE =
410
Instance Attribute Summary
Attributes inherited from APIError
#body, #data, #response, #status_code
Class Method Summary collapse
-
.from_response(status_code:, body:, response:) ⇒ Models::ExpiredCheckoutError
The deserialized error payload.
Methods inherited from APIError
Constructor Details
This class inherits a constructor from Pago::APIError
Class Method Details
.from_response(status_code:, body:, response:) ⇒ Models::ExpiredCheckoutError
Returns the deserialized error payload.
309 310 311 312 313 314 315 316 317 |
# File 'lib/pago/v2026_04/errors.rb', line 309 def self.from_response(status_code:, body:, response:) new( "Pago API returned an error: #{status_code} - ExpiredCheckoutError", status_code: status_code, data: Models::ExpiredCheckoutError.from_json(body), body: body, response: response ) end |