Exception: AfconWave::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/afconwave.rb

Overview

─── Exceptions ──────────────────────────────────────────────────────────────

Direct Known Subclasses

AuthError, PaymentError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code: nil, code: nil) ⇒ Error

Returns a new instance of Error.



17
18
19
20
21
# File 'lib/afconwave.rb', line 17

def initialize(message, status_code: nil, code: nil)
  @status_code = status_code
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



15
16
17
# File 'lib/afconwave.rb', line 15

def code
  @code
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



15
16
17
# File 'lib/afconwave.rb', line 15

def status_code
  @status_code
end