public class BusinessException extends RuntimeException
自定义业务异常类
| 构造器和说明 |
|---|
BusinessException() |
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
fillInStackTrace()
因为是自定义异常,无需将堆栈信息填充传递
|
static BusinessException |
of(int code,
String message,
String local) |
static BusinessException |
of(StatusEnum statusEnum) |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static BusinessException of(StatusEnum statusEnum)
public static BusinessException of(int code, String message, String local)
public Throwable fillInStackTrace()
fillInStackTrace 在类中 ThrowableCopyright © 2020. All rights reserved.