Exception: Synoppy::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Synoppy::Error
- Defined in:
- lib/synoppy.rb
Overview
Raised when the API returns an error response.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, code, status) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code, status) ⇒ Error
Returns a new instance of Error.
16 17 18 19 20 |
# File 'lib/synoppy.rb', line 16 def initialize(, code, status) super() @code = code @status = status end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
14 15 16 |
# File 'lib/synoppy.rb', line 14 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
14 15 16 |
# File 'lib/synoppy.rb', line 14 def status @status end |