public class BusinessException extends RuntimeException implements IException, Serializable
业务异常基类
| 限定符和类型 | 字段和说明 |
|---|---|
private Object[] |
arguments
异常 arguments
|
protected String |
errCode
异常code
|
private String |
nativeMsg
异常信息
|
private static long |
serialVersionUID
序列化ID
|
| 构造器和说明 |
|---|
BusinessException() |
BusinessException(String msg) |
BusinessException(String code,
Object... args) |
BusinessException(String code,
String msg) |
BusinessException(String code,
String msg,
Object... args) |
BusinessException(String code,
String msg,
String nativeMsg) |
BusinessException(String code,
String msg,
String nativeMsg,
Throwable cause) |
BusinessException(String code,
String msg,
Throwable cause) |
BusinessException(String msg,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object[] |
getErrorArguments()
取异常参数
|
String |
getErrorCode()
获取异常编码
|
String |
getNativeMessage()
获取本地异常信息
|
void |
setErrorArguments(Object... args)
设置异常参数
|
private static final long serialVersionUID
protected String errCode
private String nativeMsg
private Object[] arguments
public BusinessException()
public BusinessException(String msg)
public BusinessException(String code, String msg, String nativeMsg, Throwable cause)
public void setErrorArguments(Object... args)
IExceptionsetErrorArguments 在接口中 IExceptionpublic Object[] getErrorArguments()
IExceptiongetErrorArguments 在接口中 IExceptionpublic String getErrorCode()
IExceptiongetErrorCode 在接口中 IExceptionpublic String getNativeMessage()
IExceptiongetNativeMessage 在接口中 IExceptionCopyright © 2020. All rights reserved.