public class GenericRuntimeException extends RuntimeException implements RespCode
RespCode 响应码| 构造器和说明 |
|---|
GenericRuntimeException(RespCode respCode) |
GenericRuntimeException(String message,
RespCode respCode) |
GenericRuntimeException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
RespCode respCode) |
GenericRuntimeException(String message,
Throwable cause,
RespCode respCode) |
GenericRuntimeException(Throwable cause,
RespCode respCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode()
错误编码
1.
|
String |
getMsg()
错误消息
1.
|
String |
getMsgMixed()
将枚举的信息+错误的信息
|
String |
getMsgPerfer()
如果指定了 Message,则直接返回 message
否则返回枚举本身的信息
|
public GenericRuntimeException(RespCode respCode)
public GenericRuntimeException(String message, Throwable cause, RespCode respCode)
public String getMsgMixed()
public String getMsgPerfer()
Copyright © 2024. All rights reserved.