Exception: RubyPayler::ResponseError
- Defined in:
- lib/ruby_payler/errors.rb
Overview
Response.body contains error
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#code ⇒ Object
Payler error code.
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
-
#message ⇒ Object
Payler error description.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
11 12 13 |
# File 'lib/ruby_payler/errors.rb', line 11 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/ruby_payler/errors.rb', line 9 def response @response end |
Instance Method Details
#code ⇒ Object
Payler error code
16 17 18 |
# File 'lib/ruby_payler/errors.rb', line 16 def code response_error.code end |
#message ⇒ Object
Payler error description
21 22 23 |
# File 'lib/ruby_payler/errors.rb', line 21 def response_error. end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/ruby_payler/errors.rb', line 25 def to_s "Payler responded with error: #{}, code #{code}" end |