public enum CoreExceptionEnum extends Enum<CoreExceptionEnum> implements AbstractBaseExceptionEnum
Enum Constant and Description |
---|
ASYNC_ERROR |
ENCRYPT_ERROR |
FIELD_VALIDATE_ERROR
数据库字段与实体字段不一致
|
FILE_NOT_FOUND |
FILE_READING_ERROR
文件上传
|
INIT_TABLE_EMPTY_PARAMS |
INVLIDE_DATE_STRING
其他
|
IO_ERROR |
NO_CURRENT_USER
初始化数据库的异常
|
PAGE_NULL
错误的请求
|
REMOTE_SERVICE_NULL |
SERVICE_ERROR |
WRITE_ERROR
其他
|
Modifier and Type | Method and Description |
---|---|
Integer |
getCode()
获取异常的状态码
|
String |
getMessage()
获取异常的提示信息
|
static CoreExceptionEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoreExceptionEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreExceptionEnum INVLIDE_DATE_STRING
public static final CoreExceptionEnum NO_CURRENT_USER
public static final CoreExceptionEnum INIT_TABLE_EMPTY_PARAMS
public static final CoreExceptionEnum WRITE_ERROR
public static final CoreExceptionEnum ENCRYPT_ERROR
public static final CoreExceptionEnum FILE_READING_ERROR
public static final CoreExceptionEnum FILE_NOT_FOUND
public static final CoreExceptionEnum FIELD_VALIDATE_ERROR
public static final CoreExceptionEnum PAGE_NULL
public static final CoreExceptionEnum IO_ERROR
public static final CoreExceptionEnum SERVICE_ERROR
public static final CoreExceptionEnum REMOTE_SERVICE_NULL
public static final CoreExceptionEnum ASYNC_ERROR
public static CoreExceptionEnum[] values()
for (CoreExceptionEnum c : CoreExceptionEnum.values()) System.out.println(c);
public static CoreExceptionEnum 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()
AbstractBaseExceptionEnum
getCode
in interface AbstractBaseExceptionEnum
public String getMessage()
AbstractBaseExceptionEnum
getMessage
in interface AbstractBaseExceptionEnum
Copyright © 2018. All rights reserved.