public enum ErrorCodes extends Enum<ErrorCodes> implements ErrorCode
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getName() |
Integer |
getStatus() |
static ErrorCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCodes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCodes BAD_REQUEST
public static final ErrorCodes NOT_SUPPORTED
public static final ErrorCodes EMPTY
public static final ErrorCodes EMPTY_FIELD
public static final ErrorCodes BAD_FORMATTING
public static final ErrorCodes INCORRECT_TYPE
public static final ErrorCodes INVALID_VALUES
public static final ErrorCodes FIELD_DOES_NOT_EXIST
public static final ErrorCodes INVALID_FIELD
public static final ErrorCodes INVALID_RANGE
public static final ErrorCodes REPEATED_VALUES
public static final ErrorCodes ALREADY_ACTIVATED
public static final ErrorCodes UNAUTHORIZED
public static final ErrorCodes PROHIBITED
public static final ErrorCodes NOT_FOUND
public static final ErrorCodes METHOD_NOT_ALLOWED
public static final ErrorCodes NOT_ACCEPTABLE
public static final ErrorCodes TIME_OUT
public static final ErrorCodes CONFLICT
public static final ErrorCodes ALREADY_EXISTS
public static final ErrorCodes IGNORED
public static final ErrorCodes INTERNAL_SERVER_ERROR
public static final ErrorCodes FILE_NOT_SAVED
public static final ErrorCodes NOT_IMPLEMENTED
public static final ErrorCodes NOT_AVAILABLE
public static final ErrorCodes NOT_LOGGED_IN
public static ErrorCodes[] values()
for (ErrorCodes c : ErrorCodes.values()) System.out.println(c);
public static ErrorCodes 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 nullCopyright © 2019. All rights reserved.