Class: Com::Vmware::Vapi::Std::Errors::ResourceInUse
- Inherits:
-
Error
- Object
- VAPI::Bindings::VapiError
- Error
- Com::Vmware::Vapi::Std::Errors::ResourceInUse
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb
Overview
The ``Com::Vmware::Vapi::Std::Errors::ResourceInUse`` error indicates that the method could not be completed because a resource is in use.
Examples:
* Trying to remove a VMFS datastore when the is a virtual machine registered on any host attached to the datastore.
* Trying to add a virtual switch if the physical network adapter being bridged is already in use.
Counterexamples:
* Trying to power off a virtual machine that is in the process of being powered on. The :class:`Com::Vmware::Vapi::Std::Errors::ResourceBusy` error would be used instead.
Instance Attribute Summary
Attributes inherited from Error
Class Method Summary (collapse)
-
+ (VAPI::Bindings::ErrorType) binding_type
Holds (gets or creates) the binding type metadata for this error type.
Instance Method Summary (collapse)
-
- (ResourceInUse) initialize(binding_type = self.class.binding_type, error_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (ResourceInUse) initialize(binding_type = self.class.binding_type, error_value = nil)
Constructs a new instance.
567 568 569 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb', line 567 def initialize(binding_type=self.class.binding_type, error_value=nil) super(binding_type, error_value) end |
Class Method Details
+ (VAPI::Bindings::ErrorType) binding_type
Holds (gets or creates) the binding type metadata for this error type.
551 552 553 554 555 556 557 558 559 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb', line 551 def binding_type @binding_type ||= VAPI::Bindings::ErrorType.new( 'com.vmware.vapi.std.errors.resource_in_use', { 'messages' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')), 'data' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::DynamicStructType.new()), }, ResourceInUse) end |