Package cn.hamm.airpower.exception
Enum Class Errors
- All Implemented Interfaces:
cn.hamm.airpower.core.interfaces.IDictionary,cn.hamm.airpower.core.interfaces.IException<cn.hamm.airpower.core.exception.ServiceException>,Serializable,Comparable<Errors>,Constable,Supplier<cn.hamm.airpower.core.exception.ServiceException>
public enum Errors
extends Enum<Errors>
implements cn.hamm.airpower.core.interfaces.IException<cn.hamm.airpower.core.exception.ServiceException>, cn.hamm.airpower.core.interfaces.IDictionary
系统错误代码字典
- Author:
- Hamm.cn
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescription@NotNull cn.hamm.airpower.core.exception.ServiceExceptionget()获取一个服务异常intgetKey()getLabel()setMessage(String message) 设置错误信息static ErrorsReturns the enum constant of this class with the specified name.static Errors[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface cn.hamm.airpower.core.interfaces.IDictionary
equalsKey, notEqualsKeyMethods inherited from interface cn.hamm.airpower.core.interfaces.IException
getCode, getMessage, show, show, show, when, when, when, whenEmpty, whenEmpty, whenEquals, whenEquals, whenEquals, whenEquals, whenEqualsIgnoreCase, whenEqualsIgnoreCase, whenNotEquals, whenNotEquals, whenNotEquals, whenNotEquals, whenNotEqualsIgnoreCase, whenNotEqualsIgnoreCase, whenNotNull, whenNotNull, whenNull, whenNull
-
Enum Constant Details
-
CONTINUE
-
UPGRADE_CLIENT_NECESSARY
-
UPGRADE_CLIENT_OPTIONAL
-
PARAM_MISSING
-
PARAM_INVALID
-
INVALID_APP_KEY
-
SIGNATURE_INVALID
-
REPEAT_REQUEST
-
TIMESTAMP_INVALID
-
MISSING_REQUEST_ADDRESS
-
INVALID_REQUEST_ADDRESS
-
UNAUTHORIZED
-
FORBIDDEN
-
FORBIDDEN_EXIST
-
FORBIDDEN_EDIT
-
FORBIDDEN_DELETE
-
FORBIDDEN_DELETE_USED
-
FORBIDDEN_UPLOAD_MAX_SIZE
-
FORBIDDEN_DISABLED
-
FORBIDDEN_OPEN_APP_DISABLED
-
FORBIDDEN_DISABLED_NOT_ALLOWED
-
DATABASE_CONCURRENT_ERROR
-
DATA_NOT_FOUND
-
REQUEST_METHOD_UNSUPPORTED
-
REQUEST_CONTENT_TYPE_UNSUPPORTED
-
SERVICE_ERROR
-
DECRYPT_DATA_FAIL
-
ENCRYPT_DATA_FAIL
-
JSON_DECODE_FAIL
-
API_SERVICE_UNSUPPORTED
-
API_DOWN
-
DATABASE_ERROR
-
DATABASE_UNKNOWN_FIELD
-
DATABASE_TABLE_OR_FIELD_ERROR
-
REDIS_ERROR
-
EMAIL_ERROR
-
WEBSOCKET_ERROR
-
AI_ERROR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
setMessage
设置错误信息- Parameters:
message- 错误信息- Returns:
- 当前异常
-
getKey
@Contract(pure=true) public int getKey()- Specified by:
getKeyin interfacecn.hamm.airpower.core.interfaces.IDictionary
-
getLabel
- Specified by:
getLabelin interfacecn.hamm.airpower.core.interfaces.IDictionary
-
get
@Contract(" -> new") @NotNull public @NotNull cn.hamm.airpower.core.exception.ServiceException get()获取一个服务异常
-