Exception: Justifi::Error

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

Direct Known Subclasses

InvalidHttpResponseError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_code, msg) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/justifi/justifi_error.rb', line 7

def initialize(response_code, msg)
  super(msg)
  @response_code = response_code
end

Instance Attribute Details

#response_codeObject (readonly)

Returns the value of attribute response_code.



5
6
7
# File 'lib/justifi/justifi_error.rb', line 5

def response_code
  @response_code
end