Exception: Payoneer::Errors::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Payoneer::Errors::ApiError
- Defined in:
- lib/payoneer/errors/api_error.rb
Instance Attribute Summary collapse
-
#http_body ⇒ Object
readonly
Returns the value of attribute http_body.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(http_status = nil, http_body = nil) ⇒ ApiError
constructor
A new instance of ApiError.
- #to_s ⇒ Object
Constructor Details
#initialize(http_status = nil, http_body = nil) ⇒ ApiError
Returns a new instance of ApiError.
7 8 9 10 |
# File 'lib/payoneer/errors/api_error.rb', line 7 def initialize(http_status = nil, http_body = nil) @http_status = http_status @http_body = http_body end |
Instance Attribute Details
#http_body ⇒ Object (readonly)
Returns the value of attribute http_body.
5 6 7 |
# File 'lib/payoneer/errors/api_error.rb', line 5 def http_body @http_body end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
4 5 6 |
# File 'lib/payoneer/errors/api_error.rb', line 4 def http_status @http_status end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/payoneer/errors/api_error.rb', line 12 def to_s "(Status #{http_status}) Unexpected http response code" end |