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.



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

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



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

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

Instance Attribute Details

#faultObject (readonly)

Returns the value of attribute fault.



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

def fault
  @fault
end