| Package | Description |
|---|---|
| com.admin4j.common.assertion | |
| com.admin4j.common.exception |
| Modifier and Type | Class and Description |
|---|---|
class |
AssertException |
| Modifier and Type | Method and Description |
|---|---|
Admin4jException |
Assert.newException(String errMsg) |
default Admin4jException |
Assert.newException(String errMsg,
Object... args)
创建异常
|
Admin4jException |
Assert.newException(Throwable t) |
Admin4jException |
Assert.newException(Throwable t,
String errMsg)
创建异常
|
default Admin4jException |
Assert.newException(Throwable t,
String errMsg,
Object... args)
创建异常.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BizException
业务异常
|
class |
SystemException
用户操作业务时,提示系统程序的异常信息,这类的异常信息时用户看不懂的,需要告警通知程序员排查对应的问题,
如 NullPointerException,IndexOfException。
另一个情况就是接口对接时,参数的校验时提示出来的信息,
如:缺少ID,缺少必须的参数等,
这类的信息对于客户来说也是看不懂的,也是解决不了的,
所以我把这两类的错误应当统一归类于系统异常
|
Copyright © 2023. All rights reserved.