public enum PresetErrorCode extends Enum<PresetErrorCode> implements ErrorCode
| Enum Constant and Description |
|---|
ARGUMENT_FORMAT_ERROR |
ARGUMENT_TYPE_MISMATCH |
ARGUMENT_VALIDATION_FAILED |
DUPLICATE_KEY_EXCEPTION |
ENTITY_NOT_FOUND |
FILE_UPLOAD_OVER_MAX_SIZE |
HTTP_METHOD_NOT_SUPPORTED |
INTERNAL_ERROR |
REQUEST_BODY_ERROR |
SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCode() |
String |
getMessage() |
static PresetErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PresetErrorCode[] |
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, valueOfassertFalse, assertNotNull, assertTrue, build, build, build, build, fail, isSuccesspublic static final PresetErrorCode SUCCESS
public static final PresetErrorCode INTERNAL_ERROR
public static final PresetErrorCode REQUEST_BODY_ERROR
public static final PresetErrorCode ARGUMENT_TYPE_MISMATCH
public static final PresetErrorCode ARGUMENT_FORMAT_ERROR
public static final PresetErrorCode ARGUMENT_VALIDATION_FAILED
public static final PresetErrorCode HTTP_METHOD_NOT_SUPPORTED
public static final PresetErrorCode DUPLICATE_KEY_EXCEPTION
public static final PresetErrorCode FILE_UPLOAD_OVER_MAX_SIZE
public static final PresetErrorCode ENTITY_NOT_FOUND
public static PresetErrorCode[] values()
for (PresetErrorCode c : PresetErrorCode.values()) System.out.println(c);
public static PresetErrorCode 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 String getMessage()
getMessage in interface ErrorCodeCopyright © 2022 DOYToWin. All rights reserved.