Class: Com::Vmware::Vapi::Std::Errors::InvalidElementType
- Inherits:
-
Error
- Object
- VAPI::Bindings::VapiError
- Error
- Com::Vmware::Vapi::Std::Errors::InvalidElementType
- 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::InvalidElementType`` error indicates that the server was unable to fulfil the request because an element of a specific type cannot be a member of particular group.
This error could be reported, for example, if an attempt is made to put an element into the wrong type of container.
Examples:
* Attempt to put a virtual machine into a folder that can only contain hosts.
* Attempt to attach a SCSI virtual disk to an IDE port.
Counterexamples:
* A parameter has a value that is not of the expected type. The :class:`Com::Vmware::Vapi::Std::Errors::InvalidArgument` 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)
-
- (InvalidElementType) initialize(binding_type = self.class.binding_type, error_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (InvalidElementType) initialize(binding_type = self.class.binding_type, error_value = nil)
Constructs a new instance.
819 820 821 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb', line 819 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.
803 804 805 806 807 808 809 810 811 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb', line 803 def binding_type @binding_type ||= VAPI::Bindings::ErrorType.new( 'com.vmware.vapi.std.errors.invalid_element_type', { 'messages' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')), 'data' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::DynamicStructType.new()), }, InvalidElementType) end |