Exception: RbVmomi::Fault
- Inherits:
-
StandardError
- Object
- StandardError
- RbVmomi::Fault
- Defined in:
- lib/rbvmomi/fault.rb
Instance Attribute Summary collapse
-
#fault ⇒ Object
readonly
Returns the value of attribute fault.
Instance Method Summary collapse
-
#initialize(msg, fault) ⇒ Fault
constructor
A new instance of Fault.
- #method_missing(*a) ⇒ Object
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
#fault ⇒ Object (readonly)
Returns the value of attribute fault.
8 9 10 |
# File 'lib/rbvmomi/fault.rb', line 8 def fault @fault end |