Exception: Robomart::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Robomart::Error
- Defined in:
- lib/robomart.rb
Overview
API error carrying the HTTP status and the error envelope.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message, status: nil, type: nil, code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status: nil, type: nil, code: nil) ⇒ Error
Returns a new instance of Error.
23 24 25 26 27 28 |
# File 'lib/robomart.rb', line 23 def initialize(, status: nil, type: nil, code: nil) super() @status = status @type = type @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
21 22 23 |
# File 'lib/robomart.rb', line 21 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
21 22 23 |
# File 'lib/robomart.rb', line 21 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
21 22 23 |
# File 'lib/robomart.rb', line 21 def type @type end |