Exception: RbVmomi::Fault

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbvmomi/fault.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, fault) ⇒ Fault

Returns a new instance of Fault.



10
11
12
13
# File 'lib/rbvmomi/fault.rb', line 10

def initialize msg, fault
  super "#{fault.class.wsdl_name}: #{msg}"
  @fault = fault
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*a) ⇒ Object



15
16
17
# File 'lib/rbvmomi/fault.rb', line 15

def method_missing *a
  @fault.send(*a)
end

Instance Attribute Details

#faultObject (readonly)

Returns the value of attribute fault.



8
9
10
# File 'lib/rbvmomi/fault.rb', line 8

def fault
  @fault
end