Exception: ZabbixManager::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- ZabbixManager::ApiError
- Defined in:
- lib/zabbix_manager/classes/errors.rb
Overview
表示 Zabbix JSON-RPC 返回的业务错误或无效响应。
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil) ⇒ ApiError
constructor
保存经过脱敏的远端响应,便于调用方诊断。.
Constructor Details
#initialize(message = nil, response = nil) ⇒ ApiError
保存经过脱敏的远端响应,便于调用方诊断。
13 14 15 16 |
# File 'lib/zabbix_manager/classes/errors.rb', line 13 def initialize( = nil, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/zabbix_manager/classes/errors.rb', line 9 def response @response end |