top.wboost.common.exception.BaseExceptionEntity Maven / Gradle / Ivy
package top.wboost.common.exception;
public class BaseExceptionEntity {
/*int businessCode;
String message;
Throwable cause;
boolean enableSuppression;
boolean writableStackTrace;
Object[] promptMessage;
public int getBusinessCode() {
return businessCode;
}
public void setBusinessCode(int businessCode) {
this.businessCode = businessCode;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Throwable getCause() {
return cause;
}
public void setCause(Throwable cause) {
this.cause = cause;
}
public boolean isEnableSuppression() {
return enableSuppression;
}
public void setEnableSuppression(boolean enableSuppression) {
this.enableSuppression = enableSuppression;
}
public boolean isWritableStackTrace() {
return writableStackTrace;
}
public void setWritableStackTrace(boolean writableStackTrace) {
this.writableStackTrace = writableStackTrace;
}
public Object[] getPromptMessage() {
return promptMessage;
}
public void setPromptMessage(Object[] promptMessage) {
this.promptMessage = promptMessage;
}
public BaseException getException() {
return exception;
}
public void setException(BaseException exception) {
this.exception = exception;
}
private BaseExceptionEntity() {
super();
}
public static BaseExceptionEntity create() {
return new BaseExceptionEntity();
}
public void throwException(){
throw new BusinessCodeException(businessCode);
}*/
}