Exception: ZabbixManager::BaseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ZabbixManager::BaseError
- Defined in:
- lib/zabbix_manager/classes/errors.rb
Direct Known Subclasses
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.
7 8 9 10 11 12 |
# File 'lib/zabbix_manager/classes/errors.rb', line 7 def initialize(, response = nil) super() @response = response set_error! if @response end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
5 6 7 |
# File 'lib/zabbix_manager/classes/errors.rb', line 5 def error @error end |
#error_message ⇒ Object
Returns the value of attribute error_message.
5 6 7 |
# File 'lib/zabbix_manager/classes/errors.rb', line 5 def end |
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/zabbix_manager/classes/errors.rb', line 5 def response @response end |