Exception: WebpayRails::RequestFailed

Inherits:
SoapError show all
Defined in:
lib/webpay_rails/errors.rb

Overview

Raise when the SOAP request has failed.

Instance Method Summary collapse

Constructor Details

#initialize(action, error) ⇒ RequestFailed

Returns a new instance of RequestFailed.



19
20
21
22
# File 'lib/webpay_rails/errors.rb', line 19

def initialize(action, error)
  super(action, "SOAP responds with a #{error.http.code} " \
                "status code: #{error}")
end