package com.xzx.log.exception;
|
|
import com.xzx.log.dto.base.ExceptionEnum;
|
|
public class MiException extends RuntimeException{
|
private Integer code;
|
public MiException(ExceptionEnum exceptionEnum){
|
super(exceptionEnum.getMessage());
|
this.code = exceptionEnum.getCode();
|
}
|
|
public Integer getCode() {
|
return code;
|
}
|
|
public void setCode(Integer code) {
|
this.code = code;
|
}
|
}
|