public abstract class AbstractBizException extends RuntimeException
| 构造器和说明 |
|---|
AbstractBizException()
抽象的业务异常
|
AbstractBizException(int status,
String code,
String message)
抽象的业务异常
|
AbstractBizException(int status,
String code,
String message,
Throwable throwable)
抽象的业务异常
|
AbstractBizException(int status,
String code,
String message,
Throwable throwable,
String developerMessage)
抽象的业务异常
|
AbstractBizException(String message)
抽象的业务异常
|
AbstractBizException(String code,
String message)
抽象的业务异常
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode() |
String |
getDeveloperMessage() |
String |
getMessage() |
int |
getStatus() |
Throwable |
getThrowable() |
void |
setCode(String code) |
void |
setDeveloperMessage(String developerMessage) |
void |
setMessage(String message) |
void |
setStatus(int status) |
void |
setThrowable(Throwable throwable) |
public AbstractBizException(int status,
String code,
String message,
Throwable throwable,
String developerMessage)
status - 状态码(可做HTTP状态码使用)code - 异常代码message - 异常消息throwable - 异常throwabledeveloperMessage - 开发者消息public AbstractBizException(int status,
String code,
String message,
Throwable throwable)
status - 状态码(可做HTTP状态码使用)code - 异常代码message - 异常消息throwable - 异常throwablepublic AbstractBizException(int status,
String code,
String message)
status - 状态码(可做HTTP状态码使用)code - 异常代码message - 异常消息public AbstractBizException(String code, String message)
code - 异常代码message - 异常消息public AbstractBizException(String message)
message - 异常消息public AbstractBizException()
public int getStatus()
public void setStatus(int status)
public String getCode()
public void setCode(String code)
public String getMessage()
getMessage 在类中 Throwablepublic void setMessage(String message)
public Throwable getThrowable()
public void setThrowable(Throwable throwable)
public String getDeveloperMessage()
public void setDeveloperMessage(String developerMessage)
Copyright © 2019. All rights reserved.