All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.erupt.core.exception.EruptWebApiRuntimeException Maven / Gradle / Ivy

There is a newer version: 1.12.17
Show newest version
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