public class BaseException extends RuntimeException
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CODE_ATTR_NAME
异常编码在响应对象中的KEY值。
|
static String |
DEFAULT_CODE
默认的异常编码
|
| 构造器和说明 |
|---|
BaseException() |
BaseException(ErrorCode errorCode) |
BaseException(String message) |
BaseException(String message,
String code) |
BaseException(String message,
Throwable cause) |
BaseException(String message,
Throwable cause,
String code) |
BaseException(Throwable cause) |
BaseException(Throwable cause,
ErrorCode errorCode) |
BaseException(Throwable cause,
String code) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode() |
void |
setCode(String code) |
Copyright © 2023. All rights reserved.