Exception: Hawkular::BaseClient::HawkularException
- Inherits:
-
StandardError
- Object
- StandardError
- Hawkular::BaseClient::HawkularException
- Defined in:
- lib/hawkular/base_client.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) ⇒ HawkularException
constructor
A new instance of HawkularException.
Constructor Details
#initialize(message, status_code = 0) ⇒ HawkularException
Returns a new instance of HawkularException
171 172 173 174 175 |
# File 'lib/hawkular/base_client.rb', line 171 def initialize(, status_code = 0) @message = @status_code = status_code super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
177 178 179 |
# File 'lib/hawkular/base_client.rb', line 177 def @message end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code
177 178 179 |
# File 'lib/hawkular/base_client.rb', line 177 def status_code @status_code end |