package com.gkhy.exam.common.exception;
|
|
import com.gkhy.exam.common.api.IErrorCode;
|
|
public class UtilException extends RuntimeException{
|
private IErrorCode errorCode;
|
|
public UtilException(IErrorCode errorCode){
|
super(errorCode.getMessage());
|
this.errorCode = errorCode;
|
}
|
|
public UtilException(String message){
|
super(message);
|
}
|
|
public UtilException(Throwable cause){
|
super(cause);
|
}
|
|
public UtilException(String message, Throwable cause) {
|
super(message, cause);
|
}
|
|
public IErrorCode getErrorCode() {
|
return errorCode;
|
}
|
|
}
|