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