Class Error.Type
- java.lang.Object
-
- com.vmware.vapi.bindings.ApiEnumeration<Error.Type>
-
- com.vmware.vapi.std.errors.Error.Type
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Error
public static final class Error.Type extends ApiEnumeration<Error.Type>
Enumeration of all standard errors. Used as discriminator in protocols that have no standard means for transporting the error type, e.g. REST.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Error.Type.Values
Native Javaenum
representing this enumeration class.
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Error.Type.Values
getEnumValue()
Returns a native Javaenum
constant representing this enumeration constant.boolean
isUnknown()
Checks if this enumeration constant is unknown.static Error.Type
valueOf(java.lang.String name)
Returns the enumeration constant for the specified name.static Error.Type[]
values()
Retrieve all enumeration constants pre-defined by this enumeration class.-
Methods inherited from class com.vmware.vapi.bindings.ApiEnumeration
buildNameMap, equals, hashCode, name, toString
-
-
-
-
Field Detail
-
ERROR
public static final Error.Type ERROR
Discriminator for theError
type.
-
ALREADY_EXISTS
public static final Error.Type ALREADY_EXISTS
Discriminator for theAlreadyExists
type.
-
ALREADY_IN_DESIRED_STATE
public static final Error.Type ALREADY_IN_DESIRED_STATE
Discriminator for theAlreadyInDesiredState
type.
-
CANCELED
public static final Error.Type CANCELED
Discriminator for theCanceled
type.
-
CONCURRENT_CHANGE
public static final Error.Type CONCURRENT_CHANGE
Discriminator for theConcurrentChange
type.
-
FEATURE_IN_USE
public static final Error.Type FEATURE_IN_USE
Discriminator for theFeatureInUse
type.
-
INTERNAL_SERVER_ERROR
public static final Error.Type INTERNAL_SERVER_ERROR
Discriminator for theInternalServerError
type.
-
INVALID_ARGUMENT
public static final Error.Type INVALID_ARGUMENT
Discriminator for theInvalidArgument
type.
-
INVALID_ELEMENT_CONFIGURATION
public static final Error.Type INVALID_ELEMENT_CONFIGURATION
Discriminator for theInvalidElementConfiguration
type.
-
INVALID_ELEMENT_TYPE
public static final Error.Type INVALID_ELEMENT_TYPE
Discriminator for theInvalidElementType
type.
-
INVALID_REQUEST
public static final Error.Type INVALID_REQUEST
Discriminator for theInvalidRequest
type.
-
NOT_ALLOWED_IN_CURRENT_STATE
public static final Error.Type NOT_ALLOWED_IN_CURRENT_STATE
Discriminator for theNotAllowedInCurrentState
type.
-
NOT_FOUND
public static final Error.Type NOT_FOUND
Discriminator for theNotFound
type.
-
OPERATION_NOT_FOUND
public static final Error.Type OPERATION_NOT_FOUND
Discriminator for theOperationNotFound
type.
-
RESOURCE_BUSY
public static final Error.Type RESOURCE_BUSY
Discriminator for theResourceBusy
type.
-
RESOURCE_IN_USE
public static final Error.Type RESOURCE_IN_USE
Discriminator for theResourceInUse
type.
-
RESOURCE_INACCESSIBLE
public static final Error.Type RESOURCE_INACCESSIBLE
Discriminator for theResourceInaccessible
type.
-
SERVICE_UNAVAILABLE
public static final Error.Type SERVICE_UNAVAILABLE
Discriminator for theServiceUnavailable
type.
-
TIMED_OUT
public static final Error.Type TIMED_OUT
Discriminator for theTimedOut
type.
-
UNABLE_TO_ALLOCATE_RESOURCE
public static final Error.Type UNABLE_TO_ALLOCATE_RESOURCE
Discriminator for theUnableToAllocateResource
type.
-
UNAUTHENTICATED
public static final Error.Type UNAUTHENTICATED
Discriminator for theUnauthenticated
type.
-
UNAUTHORIZED
public static final Error.Type UNAUTHORIZED
Discriminator for theUnauthorized
type.
-
UNEXPECTED_INPUT
public static final Error.Type UNEXPECTED_INPUT
Discriminator for theUnexpectedInput
type.
-
UNSUPPORTED
public static final Error.Type UNSUPPORTED
Discriminator for theUnsupported
type.
-
UNVERIFIED_PEER
public static final Error.Type UNVERIFIED_PEER
Discriminator for theUnverifiedPeer
type.
-
-
Method Detail
-
values
public static Error.Type[] values()
Retrieve all enumeration constants pre-defined by this enumeration class.Additional instances might exist at runtime, for example to represent a new constant added to this enumeration class in subsequent version of the API. Such new constant is represented as instance of
Error.Type
but is not pre-defined.- Returns:
- Array of all pre-defined enumeration constants. Never
null
.
-
valueOf
public static Error.Type valueOf(java.lang.String name)
Returns the enumeration constant for the specified name.If the name matches exactly the identifier used to declare an enumeration constant from this enumeration class, the constant in question will be returned.
Otherwise, a new instance of
Error.Type
will be returned for the specified name, which will not be one of the pre-defined constant instances. Such new instance maps to theError.Type.Values._UNKNOWN
enum
constant from the native Javaenum
.- Parameters:
name
- The name of the constant to return. Must not benull
.- Returns:
- Enumeration constant for the specified name. Never
null
.
-
isUnknown
public boolean isUnknown()
Checks if this enumeration constant is unknown. Unknown is a constant that is not one of the pre-defined ones for this enumeration class. Also seevalueOf(java.lang.String)
andvalues()
.- Returns:
true
if this constant is unknown, andfalse
otherwise.
-
getEnumValue
public Error.Type.Values getEnumValue()
Returns a native Javaenum
constant representing this enumeration constant. The result is useful for usual handling of Javaenum
, for example it can be used inswitch
statements.If this enumeration constant is unknown, then
Error.Type.Values._UNKNOWN
enum
constant is returned.The native Java
enum
isError.Type.Values
.- Returns:
- The Java
enum
constant. Nevernull
.
-
-