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

cc.jinhx.process.exception.ProcessException Maven / Gradle / Ivy

There is a newer version: 1.0.17
Show newest version
package cc.jinhx.process.exception;

import cc.jinhx.process.enums.ExceptionEnums;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ProcessException
 *
 * @author jinhx
 * @since 2022-03-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProcessException extends RuntimeException {

    private static final long serialVersionUID = 8431670825597478958L;

    private String msg;

    public ProcessException(ExceptionEnums responseEnums, Throwable e){
        super(responseEnums.getMsg(), e);
        msg = responseEnums.getMsg() + "=" + responseEnums.getMsg();
    }

    public ProcessException(ExceptionEnums responseEnums){
        msg = responseEnums.getMsg();
    }

    public ProcessException(String msg){
        this.msg = msg;
    }

    public ProcessException(){
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy