This commit is contained in:
linfso 2024-04-30 10:44:46 +08:00
parent f04499fe04
commit 4f03eed99c

View File

@ -2,16 +2,15 @@ package com.xdadan.erp.emis.domain.exception;
public class EmisBizError extends Exception {
private EmisBizErrorType errorCode;
private String errorCode;
public EmisBizError(EmisBizErrorType errorCode, String errorMessage) {
public EmisBizError(EmisBizErrorType errorType, String errorMessage) {
super(errorMessage);
this.errorCode = errorCode;
this.errorCode = errorType.getErrorCode();
}
public EmisBizErrorType getErrorCode() {
public String getErrorCode() {
return errorCode;
}
}