Exception: Pago::Models::Enums::Unions::Errors::Webhooks::Services::APIError

Inherits:
Error
  • Object
show all
Defined in:
sig/pago.rbs

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAPIError

Returns a new instance of APIError.

Parameters:

  • message (String, nil)
  • status_code: (Integer, nil)
  • data: (Object)
  • body: (Object)
  • response: (Object)


37
# File 'sig/pago.rbs', line 37

def initialize: (?String? message, ?status_code: Integer?, ?data: untyped, ?body: untyped, ?response: untyped) -> void

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.

Returns:

  • (Object)


34
35
36
# File 'sig/pago.rbs', line 34

def body
  @body
end

#dataObject (readonly)

Returns the value of attribute data.

Returns:

  • (Object)


33
34
35
# File 'sig/pago.rbs', line 33

def data
  @data
end

#responseObject (readonly)

Returns the value of attribute response.

Returns:

  • (Object)


35
36
37
# File 'sig/pago.rbs', line 35

def response
  @response
end

#status_codeInteger? (readonly)

Returns the value of attribute status_code.

Returns:

  • (Integer, nil)


32
33
34
# File 'sig/pago.rbs', line 32

def status_code
  @status_code
end