Exception: Zabbirc::Zabbix::NotConnected
- Inherits:
-
StandardError
- Object
- StandardError
- Zabbirc::Zabbix::NotConnected
- Defined in:
- lib/zabbirc/zabbix/connection.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(original_exception) ⇒ NotConnected
constructor
A new instance of NotConnected.
- #to_s ⇒ Object
Constructor Details
#initialize(original_exception) ⇒ NotConnected
Returns a new instance of NotConnected.
46 47 48 |
# File 'lib/zabbirc/zabbix/connection.rb', line 46 def initialize original_exception @original_exception = original_exception end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
45 46 47 |
# File 'lib/zabbirc/zabbix/connection.rb', line 45 def original_exception @original_exception end |
Instance Method Details
#to_s ⇒ Object
50 51 52 |
# File 'lib/zabbirc/zabbix/connection.rb', line 50 def to_s "Cannot connect to Zabbix API: #{original_exception{}}" end |