public enum ExceptAll extends Enum<ExceptAll> implements IExcept
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDesc()
得到错误的描述,一般来说提供给开发人员查看或记录到log
|
String |
getErrMsg()
返回错误信息
|
String |
getErrMsg(Object errBean)
得到错误的国际化提示信息可以提供给客户查看
|
String |
getErrorCode()
得到错误编码
|
int |
getErrorValue()
得到错误值
|
String |
getHttp()
http编码
|
int |
getHttpCode() |
int |
getHttpCodeSub() |
void |
setHttpCode(int httpCode) |
void |
setHttpCodeSub(int httpCodeSub) |
static ExceptAll |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ExceptAll[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ExceptAll no
public static final ExceptAll project_undefined
public static final ExceptAll project_user
public static final ExceptAll Project_default
public static final ExceptAll project_noservice
public static final ExceptAll project_clienterror
public static final ExceptAll project_streamclose
public static final ExceptAll project_nonull
public static final ExceptAll project_overflow
public static final ExceptAll project_overarry
public static final ExceptAll project_formatnofit
public static final ExceptAll project_datenofitformate
public static final ExceptAll project_serviceerror
public static final ExceptAll param_error
public static final ExceptAll Param_dynaerror
public static final ExceptAll Param_typenofit
public static final ExceptAll Param_lengthover
public static final ExceptAll conn_nocontrol
public static ExceptAll[] values()
for (ExceptAll c : ExceptAll.values()) System.out.println(c);
public static ExceptAll valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getErrorValue()
IExceptgetErrorValue 在接口中 IExceptpublic String getErrorCode()
IExceptgetErrorCode 在接口中 IExceptpublic int getHttpCode()
public void setHttpCode(int httpCode)
public int getHttpCodeSub()
public void setHttpCodeSub(int httpCodeSub)
Copyright © 2017. All rights reserved.