Exception: ZabbixManager::BaseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/zabbix_manager/classes/errors.rb

Direct Known Subclasses

HttpError, ManagerError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, response = nil)
  super(message)
  @response = response

  set_error! if @response
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



5
6
7
# File 'lib/zabbix_manager/classes/errors.rb', line 5

def error
  @error
end

#error_messageObject

Returns the value of attribute error_message.



5
6
7
# File 'lib/zabbix_manager/classes/errors.rb', line 5

def error_message
  @error_message
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/zabbix_manager/classes/errors.rb', line 5

def response
  @response
end