Exception: MaliPoPay::Error
- Inherits:
-
StandardError
- Object
- StandardError
- MaliPoPay::Error
- Defined in:
- lib/malipopay/errors.rb
Overview
Base error class for all MaliPoPay errors
Direct Known Subclasses
ApiError, AuthenticationError, ConnectionError, NotFoundError, PermissionError, RateLimitError, ValidationError
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
Instance Method Summary collapse
-
#initialize(message = nil, http_status: nil, response_body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, http_status: nil, response_body: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/malipopay/errors.rb', line 8 def initialize( = nil, http_status: nil, response_body: nil) @http_status = http_status @response_body = response_body super() end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
6 7 8 |
# File 'lib/malipopay/errors.rb', line 6 def http_status @http_status end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
6 7 8 |
# File 'lib/malipopay/errors.rb', line 6 def response_body @response_body end |