Exception: Pago::V2026_04::Errors::ResourceNotFound
- Inherits:
-
NotFoundError
- Object
- StandardError
- Error
- APIError
- ClientError
- NotFoundError
- Pago::V2026_04::Errors::ResourceNotFound
- Defined in:
- lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs
Overview
Organization not found. Raised on HTTP 404.
Constant Summary collapse
- STATUS_CODE =
404
Instance Attribute Summary
Attributes inherited from APIError
#body, #data, #response, #status_code
Class Method Summary collapse
-
.from_response(status_code:, body:, response:) ⇒ Models::ResourceNotFound
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::ResourceNotFound
Returns the deserialized error payload.
870 871 872 873 874 875 876 877 878 |
# File 'lib/pago/v2026_04/errors.rb', line 870 def self.from_response(status_code:, body:, response:) new( "Pago API returned an error: #{status_code} - ResourceNotFound", status_code: status_code, data: Models::ResourceNotFound.from_json(body), body: body, response: response ) end |