public static enum BizErrorCode.ValidateErrorType extends Enum<BizErrorCode.ValidateErrorType> implements IException
| 枚举常量和说明 |
|---|
PARAMS_IS_INVALID |
PARAMS_IS_NULL |
PARAMS_NOT_COMPLETE |
PARAMS_TYPE_ERROR |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode()
获取错误码
|
String |
getMessage()
获取错误描述
|
void |
setCode(String code) |
void |
setMessage(String message) |
String |
toString() |
static BizErrorCode.ValidateErrorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BizErrorCode.ValidateErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BizErrorCode.ValidateErrorType PARAMS_IS_NULL
public static final BizErrorCode.ValidateErrorType PARAMS_NOT_COMPLETE
public static final BizErrorCode.ValidateErrorType PARAMS_TYPE_ERROR
public static final BizErrorCode.ValidateErrorType PARAMS_IS_INVALID
public static BizErrorCode.ValidateErrorType[] values()
for (BizErrorCode.ValidateErrorType c : BizErrorCode.ValidateErrorType.values()) System.out.println(c);
public static BizErrorCode.ValidateErrorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getCode()
IExceptiongetCode 在接口中 IExceptionpublic void setCode(String code)
public String getMessage()
IExceptiongetMessage 在接口中 IExceptionpublic void setMessage(String message)
public String toString()
toString 在类中 Enum<BizErrorCode.ValidateErrorType>Copyright © 2020. All rights reserved.