Class: Com::Vmware::Vapi::Std::Errors::OperationNotFound

Inherits:
Error
  • Object
show all
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::OperationNotFound`` error indicates that the method specified in the request could not be found.


 Every API request specifies a service identifier and an operation identifier along with the  parameters . If the API infrastructure is unable to find the requested  class  or  method  it reports this  error .  

 This  error  can be reported by the API infrastructure for any  method , but it is specific to the API infrastructure, and should never be reported by the implementation of any  method .  

 Examples:  

  * A client provides an invalid service or operation identifier when invoking the  method  using a dynamic interface (for example REST). 
   * A client invokes the  method  from a  class , but that  class  has not been installed. 
  
   

 Counterexamples:  

  * A client invokes a task scheduling  method , but provides an invalid service identifier or operation identifier. The   :class:`Com::Vmware::Vapi::Std::Errors::NotFound`    error  would be used instead.

Instance Attribute Summary

Attributes inherited from Error

#data, #messages

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (OperationNotFound) initialize(binding_type = self.class.binding_type, error_value = nil)

Constructs a new instance.

Parameters:

  • binding_type (VAPI::Bindings::BindingType) (defaults to: self.class.binding_type)

    the specific BindingType declaration for this concrete VapiError type

  • error_value (VAPI::Data::ErrorValue) (defaults to: nil)

    the error value (default nil)



652
653
654
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb', line 652

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.

Returns:

  • (VAPI::Bindings::ErrorType)

    the binding type



636
637
638
639
640
641
642
643
644
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/std/errors.rb', line 636

def binding_type
    @binding_type ||= VAPI::Bindings::ErrorType.new(
        'com.vmware.vapi.std.errors.operation_not_found',
        {
            'messages' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
            'data' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::DynamicStructType.new()),
        },
        OperationNotFound)
end