Exception: GmoPayment::Errors::ResponseHTTPError

Inherits:
GmoPayment::Errors show all
Defined in:
lib/gmo_payment/errors.rb

Overview

Error of response HTTP is not 2xx.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(called_method = nil, request = nil) ⇒ ResponseHTTPError

Returns a new instance of ResponseHTTPError.

Parameters:

  • called_method (Symbol) (defaults to: nil)
  • request (Request) (defaults to: nil)


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_methodObject



58
59
60
# File 'lib/gmo_payment/errors.rb', line 58

def called_method
  @called_method
end

#requestObject



58
# File 'lib/gmo_payment/errors.rb', line 58

attr_accessor :called_method, :request