public enum BuildInErrorCodes extends Enum<BuildInErrorCodes> implements ErrorCode
| Enum Constant and Description |
|---|
AUTHORIZATION_FAILED |
ILLEGAL_REQUEST |
OK |
RATE_LIMITATION_REACHED |
SERVER_ERROR |
| Modifier and Type | Method and Description |
|---|---|
ErrorMessage |
getMessage() |
String |
getName() |
int |
getValue() |
static BuildInErrorCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuildInErrorCodes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetLocalizedMessagepublic static final BuildInErrorCodes AUTHORIZATION_FAILED
public static final BuildInErrorCodes ILLEGAL_REQUEST
public static final BuildInErrorCodes OK
public static final BuildInErrorCodes RATE_LIMITATION_REACHED
public static final BuildInErrorCodes SERVER_ERROR
public static BuildInErrorCodes[] values()
for (BuildInErrorCodes c : BuildInErrorCodes.values()) System.out.println(c);
public static BuildInErrorCodes 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 ErrorMessage getMessage()
getMessage in interface ErrorCodeCopyright © 2018. All rights reserved.