1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.yaozhitech.spring5.common.exception;
- /**
- * Created by ace on 2017/9/8.
- */
- public class BaseException extends RuntimeException {
- private int status = 200;
- public int getStatus() {
- return status;
- }
- public void setStatus(int status) {
- this.status = status;
- }
- public BaseException() {
- }
- public BaseException(String message,int status) {
- super(message);
- this.status = status;
- }
- public BaseException(String message) {
- super(message);
- }
- public BaseException(String message, Throwable cause) {
- super(message, cause);
- }
- public BaseException(Throwable cause) {
- super(cause);
- }
- public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
- super(message, cause, enableSuppression, writableStackTrace);
- }
- }
|