2018-08-08 17:14:18 +08:00

41 lines
825 B
Java

package com.tenwa.app.invoice.exception;
public class InvoiceException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer errorCode ;
private String errorMsg ;
public Integer getErrorCode() {
return errorCode;
}
public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public InvoiceException(String errorMsg) {
super(errorMsg);
this.errorMsg = errorMsg ;
}
public InvoiceException(Integer errorCode , String errorMsg) {
super(errorMsg);
this.errorCode = errorCode ;
this.errorMsg = errorMsg ;
}
}