Exception: Zabbirc::Zabbix::NotConnected

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zabbirc/zabbix/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_exceptionObject (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_sObject



50
51
52
# File 'lib/zabbirc/zabbix/connection.rb', line 50

def to_s
  "Cannot connect to Zabbix API: #{original_exception{}}"
end