Exception: Hawkular::BaseClient::HawkularException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hawkular/base_client.rb

Overview

Specialized exception to be thrown when the interaction with Hawkular fails

Direct Known Subclasses

HawkularConnectionException

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status_code = 0)
  @message = message
  @status_code = status_code
  super(message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message



177
178
179
# File 'lib/hawkular/base_client.rb', line 177

def message
  @message
end

#status_codeObject (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