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 ; } }