Exception: ZabbixApi::BaseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ZabbixApi::BaseError
- Defined in:
- lib/zabbixapi/classes/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(message, response = nil) ⇒ BaseError
Returns a new instance of BaseError.
6 7 8 9 10 11 |
# File 'lib/zabbixapi/classes/errors.rb', line 6 def initialize(, response = nil) super() @response = response set_error! if @response end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
4 5 6 |
# File 'lib/zabbixapi/classes/errors.rb', line 4 def error @error end |
#error_message ⇒ Object
Returns the value of attribute error_message.
4 5 6 |
# File 'lib/zabbixapi/classes/errors.rb', line 4 def @error_message end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/zabbixapi/classes/errors.rb', line 4 def response @response end |