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

com.dahuatech.icc.multiinone.exception.BusinessException Maven / Gradle / Ivy

The newest version!
package com.dahuatech.icc.multiinone.exception;

/**
 * 业务异常
 */
public class BusinessException extends RuntimeException{

    public String code;
    public String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

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

    public BusinessException(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getMessage() {
        return msg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy