package com.jiuheng.smartCard.common.exception;
/**
* 错误请求异常
*/
public class BadRequestException extends RuntimeException {
private Integer status;
private Object data;
public BadRequestException() {
super("系统异常");
}
public BadRequestException(String message) {
super(message);
this.status=500;
}
public BadRequestException(int status, String message) {
super(message);
this.status = status;
}
public BadRequestException(String message, Object data) {
super(message);
this.data = data;
}
public BadRequestException(int status, String message, Object data) {
super(message);
this.status = status;
this.data = data;
}
public BadRequestException(String message, Throwable cause) {
super(message, cause);
}
public Object getData() {
return data;
}
public Integer getStatus() {
return status;
}
}