public static enum Error.Code extends Enum<Error.Code>
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CREATED |
FORBIDDEN |
INTERNAL_ERROR |
NO_CONTENT |
NOT_ALLOWED |
NOT_FOUND |
NOT_IMPLEMENTED |
OK |
SEE_OTHER |
UNAUTHORIZED |
UNAVAILABLE |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static Error.Code |
fromCode(int majorErrorCode) |
Integer |
getCode() |
static Error.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Error.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error.Code OK
public static final Error.Code CREATED
public static final Error.Code ACCEPTED
public static final Error.Code NO_CONTENT
public static final Error.Code SEE_OTHER
public static final Error.Code BAD_REQUEST
public static final Error.Code UNAUTHORIZED
public static final Error.Code FORBIDDEN
public static final Error.Code NOT_FOUND
public static final Error.Code NOT_ALLOWED
public static final Error.Code INTERNAL_ERROR
public static final Error.Code NOT_IMPLEMENTED
public static final Error.Code UNAVAILABLE
public static final Error.Code UNRECOGNIZED
public static Error.Code[] values()
for (Error.Code c : Error.Code.values()) System.out.println(c);
public static Error.Code valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic Integer getCode()
public static Error.Code fromCode(int majorErrorCode)
Copyright © 2009-2013 jclouds. All Rights Reserved.