Exception: GmoPayment::Errors::ResponseHTTPError
- Inherits:
-
GmoPayment::Errors
- Object
- StandardError
- GmoPayment::Errors
- GmoPayment::Errors::ResponseHTTPError
- Defined in:
- lib/gmo_payment/errors.rb
Overview
Error of response HTTP is not 2xx.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(called_method = nil, request = nil) ⇒ ResponseHTTPError
constructor
A new instance of ResponseHTTPError.
Constructor Details
#initialize(called_method = nil, request = nil) ⇒ ResponseHTTPError
Returns a new instance of ResponseHTTPError.
62 63 64 65 66 |
# File 'lib/gmo_payment/errors.rb', line 62 def initialize(called_method = nil, request = nil) self.called_method = called_method self.request = request super("HTTP response called from `#{called_method}' is not 2xx") end |
Instance Attribute Details
#called_method ⇒ Object
58 59 60 |
# File 'lib/gmo_payment/errors.rb', line 58 def called_method @called_method end |
#request ⇒ Object
58 |
# File 'lib/gmo_payment/errors.rb', line 58 attr_accessor :called_method, :request |