Files
zentao/src/main/java/com/sa/zentao/dao/BusinessException.java

36 lines
767 B
Java

package com.sa.zentao.dao;
public class BusinessException extends RuntimeException {
public BusinessException(Code code){
super(code.getValue());
this.code=code;
}
public BusinessException(String value){
super(value);
this.value=value;
}
public BusinessException(Code code, String message){
super(message);
this.code=code;
this.value=message;
}
public BusinessException(String value, Throwable cause){
super(value, cause);
this.value=value;
}
public BusinessException(Code code, String message, Throwable cause){
super(message, cause);
this.code=code;
this.value=message;
}
public String value;
public Code code;
}