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