Exception: Hawkular::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Hawkular::Exception
- Defined in:
- lib/hawkular/client_utils.rb
Overview
Specialized exception to be thrown when the interaction with Hawkular fails
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code = 0) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message, status_code = 0) ⇒ Exception
Returns a new instance of Exception.
5 6 7 8 9 |
# File 'lib/hawkular/client_utils.rb', line 5 def initialize(, status_code = 0) = @status_code = status_code super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
11 12 13 |
# File 'lib/hawkular/client_utils.rb', line 11 def end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
11 12 13 |
# File 'lib/hawkular/client_utils.rb', line 11 def status_code @status_code end |