xyz.erupt.core.exception.EruptWebApiRuntimeException Maven / Gradle / Ivy
package xyz.erupt.core.exception;
import lombok.Getter;
import java.util.Map;
/**
* @author YuePeng
* date 2020-09-30
*/
@Getter
public class EruptWebApiRuntimeException extends RuntimeException {
private boolean printStackTrace;
//异常信息扩展
private Map extraMap;
public EruptWebApiRuntimeException(String message) {
this(message, true);
}
public EruptWebApiRuntimeException(String message, boolean printStackTrace) {
super(message);
this.printStackTrace = printStackTrace;
}
public EruptWebApiRuntimeException(Map extraMap, boolean printStackTrace) {
this.printStackTrace = printStackTrace;
this.extraMap = extraMap;
}
public EruptWebApiRuntimeException(String message, Throwable cause) {
super(message, cause);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy