public interface ICodeEnum
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getCode()
获取状态码
|
String |
getMessage()
获取描述信息
|
default boolean |
isMatch(Integer code) |
default BusinessException |
toEx()
错误码转异常
|
default BusinessException |
toEx(boolean show)
错误码转异常
|
default BusinessException |
toEx(Object... params)
格式化提示信息
|
Integer getCode()
String getMessage()
default BusinessException toEx()
default BusinessException toEx(Object... params)
params - 参数default BusinessException toEx(boolean show)
show - 是否展示default boolean isMatch(Integer code)
Copyright © 2024. All rights reserved.