Exception: Pago::V2026_04::Errors::UpdateMember401Error

Inherits:
AuthenticationError show all
Defined in:
lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs

Overview

Authentication required Raised on HTTP 401.

Constant Summary collapse

STATUS_CODE =

Returns:

  • (Integer)
401

Instance Attribute Summary

Attributes inherited from APIError

#body, #data, #response, #status_code

Class Method Summary collapse

Methods inherited from APIError

#initialize

Constructor Details

This class inherits a constructor from Pago::APIError

Class Method Details

.from_response(status_code:, body:, response:) ⇒ nil

Returns the deserialized error payload.

Parameters:

  • status_code: (Integer)
  • body: (Object)
  • response: (Object)

Returns:

  • (nil)

    the deserialized error payload.



1040
1041
1042
1043
1044
1045
1046
1047
1048
# File 'lib/pago/v2026_04/errors.rb', line 1040

def self.from_response(status_code:, body:, response:)
  new(
    "Pago API returned an error: #{status_code} - UpdateMember401Error",
    status_code: status_code,
    data: body,
    body: body,
    response: response
  )
end