Exception: Ruberto::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ruberto::Error
- Defined in:
- lib/ruberto/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, body, status) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, body, status) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 13 |
# File 'lib/ruberto/error.rb', line 7 def initialize(msg, body, status) @message = body[:message] @metadata = body[:metadata] @status = status super(msg) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/ruberto/error.rb', line 5 def @message end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/ruberto/error.rb', line 5 def @metadata end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/ruberto/error.rb', line 5 def status @status end |