md
This commit is contained in:
parent
f04499fe04
commit
4f03eed99c
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user