Exception: ProxmoxAPI::ApiException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ProxmoxAPI::ApiException
- Defined in:
- lib/proxmox_api.rb
Overview
This exception is raised when Proxmox API returns error code
Instance Attribute Summary collapse
-
#response ⇒ RestClient::Response
readonly
Answer from Proxmox server.
Instance Method Summary collapse
-
#initialize(response, description) ⇒ ApiException
constructor
A new instance of ApiException.
Constructor Details
#initialize(response, description) ⇒ ApiException
Returns a new instance of ApiException.
53 54 55 56 57 |
# File 'lib/proxmox_api.rb', line 53 def initialize(response, description) @response = response super description end |
Instance Attribute Details
#response ⇒ RestClient::Response (readonly)
Returns answer from Proxmox server.
50 51 52 53 54 55 56 57 58 |
# File 'lib/proxmox_api.rb', line 50 class ApiException < RuntimeError attr_reader :response def initialize(response, description) @response = response super description end end |