The com.vmware.vapi.std.errors_client module provides the standard exceptions that can be included in the list of exceptions in the specification of methods to indicate that the method might report those exceptions. It also provides some classes intended to be used as payload to provide additional information about those exceptions.
Bases: com.vmware.vapi.std.errors_client.Error
The AlreadyExists exception indicates that an attempt was made to create an entity but the entity already exists. Typically the entity has a name or identifier that is required to be unique in some context, but there is already an entity with that name or identifier in that context.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The AlreadyInDesiredState exception indicates that an attempt to change the state of a resource or service had no effect because the resource or service is already in the desired state.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ArgumentLocations class describes which part(s) of the input to the method caused the exception.
Some types of exceptions are caused by the value of one of the inputs to the method, possibly due to an interaction with other inputs to the method. This class is intended to be used as the payload to identify those inputs when the method reports exceptions like InvalidArgument or NotFound. See Error.data.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Canceled exception indicates that the method canceled itself in response to an explicit request to do so. Methods being “canceled” for other reasons (for example the client connection was closed, a time out occured, or due to excessive resource consumption) should not report this exception.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ConcurrentChange exception indicates that a data structure, entity, or resource has been modified since some earlier point in time. Typically this happens when the client is doing the write portion of a read-modify-write sequence and indicates that it wants the server to notify it if the data in the server has changed after it did the read, so that it can avoid overwriting that change inadvertantly.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.error.VapiError
The Error exception describes theattributes common to all standard exceptions.
This exception serves two purposes:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The FeatureInUse exception indicates that an action cannot be completed because a feature is in use.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The FileLocations class identifies the file(s) that caused the method to report the exception.
Some types of exceptions are caused by a problem with one or more files. This class is intended to be used as the payload to identify those files when the method reports exceptions like NotFound. See Error.data.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InternalServerError exception indicates that the server encounters an unexpected condition that prevented it from fulfilling the request.
This exception is reported by the API infrastructure, so it could occur in response to the invocation of any method.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidArgument exception indicates that the values received for one or more parameters are not acceptable.
This exception is reported by the API infrastructure, so it could occur in response to the invocation of any method. It may also be reported as the return value of method-specific validation.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidElementConfiguration exception indicates that an attempt to modify the configuration of an element or a group containing the element failed due to the configuraton of the element. A typical case is when the method is am attempt to change the group membership of the element fails, in which case a configuration change on the element may allow the group membership change to succeed.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidElementType exception 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 exception could be reported, for example, if an attempt is made to put an element into the wrong type of container.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The InvalidRequest exception indicates that the request is malformed in such a way that the server is unable to process it.
Examples:
Counterexamples:
Some transport protocols (for example JSON-RPC) include their own mechanism for reporting these kinds of errors, and the API infrastructure for a programming language may expose the errors using a language specific mechanism, so this exception might not be used.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The NotAllowedInCurrentState exception indicates that the requested method is not allowed with a resource or service in its current state. This could be because the method is performing a configuration change that is not allowed in the current state or because method itself is not allowed in the current state.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The NotFound exception indicates that a specified element could not be found.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The OperationNotFound exception 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 exception.
This exception 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:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ResourceBusy exception indicates that the method could not be completed because a resource it needs is busy.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ResourceInUse exception indicates that the method could not be completed because a resource is in use.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ResourceInaccessible exception indicates that the method could not be completed because an entity is not accessible.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The ServiceUnavailable exception indicates that the class is unavailable.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The TimedOut exception indicates that the method did not complete within the allowed amount of time. The allowed amount of time might be:
The method may or may not complete after the TimedOut exception was reported.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The TransientIndication class indicates whether or not the exception is transient.
Some types of exceptions are transient in certain situtations and not transient in other situtations. This exception payload can be used to indicate to clients whether a particular exception is transient. See Error.data.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | is_transient (bool) – Indicates that the exception this class is attached to is transient. |
---|
Bases: com.vmware.vapi.std.errors_client.Error
The UnableToAllocateResource exception indicates that the method failed because it was unable to allocate or acquire a required resource.
Examples:
Counterexamples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Unauthenticated exception indicates that the method requires authentication and the user is not authenticated.
API requests may include a security context containing user credentials. For example, the user credentials could be a SAML token, a user name and password, or the session identifier for a previously established session.
Examples:
Counterexamples:
For security reasons, the Error.data attribute in this exception is None, and the Error.messages attribute in this exception does not disclose which part of the security context is correct or incorrect. For example the messages would not disclose whether a username or a password is valid or invalid, but only that a combination of username and password is invalid.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Unauthorized exception indicates that the user is not authorized to perform the method.
API requests may include a security context containing user credentials. For example, the user credentials could be a SAML token, a user name and password, or the session identifier for a previously established session. Invoking the method may require that the user identified by those credentials has particular privileges on the method or on one or more resource identifiers passed to the method.
Examples:
Counterexamples:
For security reasons, the Error.data attribute in this exception is None, and the Error.messages attribute in this exception does not disclose why the user is not authorized to perform the method. For example the messages would not disclose which privilege the user did not have or which resource identifier the user did not have the required privilege to access. The API documentation should indicate what privileges are required.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The UnexpectedInput exception indicates that the request contained a parameter or attribute whose name is not known by the server.
Every method expects parameters with known names. Some of those parameters may be (or contain) classes, and the method expects those classes to contain attributes with known names. If the method receives parameters or attributes with names that is does not expect, this exception may be reported.
This exception 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:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: com.vmware.vapi.std.errors_client.Error
The Unsupported exception indicates that the method is not supported by the class.
Examples:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|