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

com.founder.core.exception.BizException Maven / Gradle / Ivy

There is a newer version: 3.6.1.9
Show newest version
package com.founder.core.exception;

public class BizException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String err_msg;
    private int infcode = -1;

    public BizException(String msg) {
        super(msg);
        this.err_msg = msg;
    }

    public BizException(String msg, Throwable e) {
        super(msg, e);
        this.err_msg = msg;
    }

    public BizException(String msg, int code) {
        super(msg);
        this.err_msg = msg;
        this.infcode = code;
    }

    public BizException(String msg, int code, Throwable e) {
        super(msg, e);
        this.err_msg = msg;
        this.infcode = code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getInfcode() {
        return infcode;
    }

    public void setInfcode(int infcode) {
        this.infcode = infcode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy