Exception: Autonoma::AutonomaError
- Inherits:
-
StandardError
- Object
- StandardError
- Autonoma::AutonomaError
- Defined in:
- lib/autonoma/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, code, status) ⇒ AutonomaError
constructor
A new instance of AutonomaError.
Constructor Details
#initialize(message, code, status) ⇒ AutonomaError
Returns a new instance of AutonomaError.
7 8 9 10 11 12 |
# File 'lib/autonoma/errors.rb', line 7 def initialize(, code, status) @message = @code = code @status = status super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/autonoma/errors.rb', line 5 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/autonoma/errors.rb', line 5 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/autonoma/errors.rb', line 5 def status @status end |