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

com.murong.val.exception.BusinessException Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package com.murong.val.exception;

/**
 * 业务异常expection
 *
 * @author murong
 * 2019年2月31日
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private int code;
    private String description;

    public BusinessException(int code, String description) {
        super(description);
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

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

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy