public enum ErrorCode extends java.lang.Enum<ErrorCode>
Enum Constant and Description |
---|
ACCESS_DENIED |
INVALID_REQUEST |
INVALID_SCOPE |
SERVER_ERROR |
TEMPORARILY_UNAVAILABLE |
UNAUTHORIZED_CLIENT |
UNSUPPORTED_RESPONSE_TYPE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode() |
void |
setErrorCode(java.lang.String errorCode) |
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode INVALID_REQUEST
public static final ErrorCode UNAUTHORIZED_CLIENT
public static final ErrorCode ACCESS_DENIED
public static final ErrorCode UNSUPPORTED_RESPONSE_TYPE
public static final ErrorCode INVALID_SCOPE
public static final ErrorCode SERVER_ERROR
public static final ErrorCode TEMPORARILY_UNAVAILABLE
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getErrorCode()
public void setErrorCode(java.lang.String errorCode)
errorCode
- the errorCode code