Interface IErrorCode
- All Known Implementing Classes:
AdminErrorCode
,CommonErrorCode
,OpenErrorCode
public interface IErrorCode
错误码抽象
- Author:
- xezzon
-
Field Details
-
I18N_BASENAME
错误码国际化的命名空间- See Also:
-
-
Method Details
-
code
错误码编码 格式为 `${错误来源类型}{模块编码}{异常码序列号}`- Returns:
- 错误码编码
-
sourceType
ErrorSourceType sourceType()- Returns:
- 错误来源类型
-
moduleCode
byte moduleCode()模块编码 0 为公共模块 ZeroWeb 的模块编码从 -1~-128 分配 1~127 由使用者分配- Returns:
- 模块编码
-
serialNumber
default byte serialNumber()异常码序列号 同一模块下的异常按从 1~255 分配- Returns:
- 异常码序列号
-
name
String name()错误名称 与错误码编码一一对应- Returns:
- 错误名称
-