com.github.wzc789376152.exception.BizRuntimeException Maven / Gradle / Ivy
package com.github.wzc789376152.exception;
import lombok.Getter;
public class BizRuntimeException extends RuntimeException{
@Getter
private Integer errorCode;
@Getter
private String errorMiniCode;
public BizRuntimeException() {
super();
}
public BizRuntimeException(String message) {
super(message);
}
public BizRuntimeException(Integer errorCode, String errorMiniCode,String errorMsg) {
super(errorMsg);
this.errorCode = errorCode;
this.errorMiniCode = errorMiniCode;
}
public BizRuntimeException(String errorMsg, Throwable e) {
super(errorMsg, e);
}
}