Exception: ProxmoxAPI::ApiException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/proxmox_api.rb

Overview

This exception is raised when Proxmox API returns error code

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseRestClient::Response (readonly)

Returns answer from Proxmox server.

Returns:

  • (RestClient::Response)

    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