Package cn.sliew.milky.common.exception
Enum BizExceptionEnum
- java.lang.Object
-
- java.lang.Enum<BizExceptionEnum>
-
- cn.sliew.milky.common.exception.BizExceptionEnum
-
- All Implemented Interfaces:
Serializable,Comparable<BizExceptionEnum>
public enum BizExceptionEnum extends Enum<BizExceptionEnum>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCode()StringgetMessage()booleanisRetryable()static BizExceptionEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static BizExceptionEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final BizExceptionEnum SUCCESS
-
FAILURE
public static final BizExceptionEnum FAILURE
-
SYS_EXCEPTION
public static final BizExceptionEnum SYS_EXCEPTION
-
UNKNOWN_EXCEPTION
public static final BizExceptionEnum UNKNOWN_EXCEPTION
-
UNDEFINED_EXCEPTION
public static final BizExceptionEnum UNDEFINED_EXCEPTION
-
LIMITED_EXCEPTION
public static final BizExceptionEnum LIMITED_EXCEPTION
-
FUSED_EXCEPTION
public static final BizExceptionEnum FUSED_EXCEPTION
-
DEMOTED_EXCEPTION
public static final BizExceptionEnum DEMOTED_EXCEPTION
-
BLANK_PARAM_EXCEPTION
public static final BizExceptionEnum BLANK_PARAM_EXCEPTION
-
INVALID_PARAM_EXCEPTION
public static final BizExceptionEnum INVALID_PARAM_EXCEPTION
-
EXIST_DATA_EXCEPTION
public static final BizExceptionEnum EXIST_DATA_EXCEPTION
-
INVALID_DATA_EXCEPTION
public static final BizExceptionEnum INVALID_DATA_EXCEPTION
-
NOT_FOUND_DATA_EXCEPTION
public static final BizExceptionEnum NOT_FOUND_DATA_EXCEPTION
-
INVALID_FORMAT_DATA_EXCEPTION
public static final BizExceptionEnum INVALID_FORMAT_DATA_EXCEPTION
-
RPC_INVOKE_EXCEPTION
public static final BizExceptionEnum RPC_INVOKE_EXCEPTION
-
HTTP_INVOKE_EXCEPTION
public static final BizExceptionEnum HTTP_INVOKE_EXCEPTION
-
AAAA
public static final BizExceptionEnum AAAA
下面各系统异常枚举
-
BBBB
public static final BizExceptionEnum BBBB
-
CCCC
public static final BizExceptionEnum CCCC
-
-
Method Detail
-
values
public static BizExceptionEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BizExceptionEnum c : BizExceptionEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BizExceptionEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public long getCode()
-
isRetryable
public boolean isRetryable()
-
getMessage
public String getMessage()
-
-