Exception: IbanClient::RequestError
- Defined in:
- lib/iban_client/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(iban:, response:) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ Object
Constructor Details
#initialize(iban:, response:) ⇒ RequestError
Returns a new instance of RequestError.
13 14 15 16 |
# File 'lib/iban_client/errors.rb', line 13 def initialize(iban:, response:) @response = response super(iban: iban) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/iban_client/errors.rb', line 11 def response @response end |
Instance Method Details
#message ⇒ Object
18 19 20 21 22 |
# File 'lib/iban_client/errors.rb', line 18 def "#{initial_error.}\n"\ "Request iban: #{iban}\n"\ "Response: #{response}" end |