Exception: ZabbixManager::ApiError

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

Overview

表示 Zabbix JSON-RPC 返回的业务错误或无效响应。

Direct Known Subclasses

Conflict

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response = nil) ⇒ ApiError

保存经过脱敏的远端响应,便于调用方诊断。



13
14
15
16
# File 'lib/zabbix_manager/classes/errors.rb', line 13

def initialize(message = nil, response = nil)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/zabbix_manager/classes/errors.rb', line 9

def response
  @response
end