org.jclouds.vcloud.director.v1_5.domain
Enum Error.Code
java.lang.Object
java.lang.Enum<Error.Code>
org.jclouds.vcloud.director.v1_5.domain.Error.Code
- All Implemented Interfaces:
- Serializable, Comparable<Error.Code>
- Enclosing class:
- Error
public static enum Error.Code
- extends Enum<Error.Code>
OK
public static final Error.Code OK
CREATED
public static final Error.Code CREATED
ACCEPTED
public static final Error.Code ACCEPTED
NO_CONTENT
public static final Error.Code NO_CONTENT
SEE_OTHER
public static final Error.Code SEE_OTHER
BAD_REQUEST
public static final Error.Code BAD_REQUEST
UNAUTHORIZED
public static final Error.Code UNAUTHORIZED
FORBIDDEN
public static final Error.Code FORBIDDEN
NOT_FOUND
public static final Error.Code NOT_FOUND
NOT_ALLOWED
public static final Error.Code NOT_ALLOWED
INTERNAL_ERROR
public static final Error.Code INTERNAL_ERROR
NOT_IMPLEMENTED
public static final Error.Code NOT_IMPLEMENTED
UNAVAILABLE
public static final Error.Code UNAVAILABLE
UNRECOGNIZED
public static final Error.Code UNRECOGNIZED
values
public static Error.Code[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Error.Code c : Error.Code.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Error.Code valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getCode
public Integer getCode()
fromCode
public static Error.Code fromCode(int majorErrorCode)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.