Exception: XenApi::Errors::GenericError

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

Overview

Generic errror case, all XenApi exceptions inherit from this for ease of catching

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ GenericError

Returns a new instance of GenericError.



8
9
10
11
12
# File 'lib/xenapi/xenapi/errors.rb', line 8

def initialize(*args, &block)
  @description = args[0]
  args[0] = args[0].inspect unless args[0].is_a? String || args[0].nil?
  super(*args, &block)
end

Instance Attribute Details

#descriptionObject (readonly)

The raw error description according to the server, typically an array



6
7
8
# File 'lib/xenapi/xenapi/errors.rb', line 6

def description
  @description
end