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

com.zhongweixian.excel.exception.ExcelExportException Maven / Gradle / Ivy

The newest version!
package com.zhongweixian.excel.exception;

/**
 * @author [email protected]
 * @Date 2017/11/5:23:14
 */
public class ExcelExportException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private ExcelExportEnum   type;

    public ExcelExportException() {
        super();
    }

    public ExcelExportException(ExcelExportEnum type) {
        super(type.getMsg());
        this.type = type;
    }

    public ExcelExportException(ExcelExportEnum type, Throwable cause) {
        super(type.getMsg(), cause);
    }

    public ExcelExportException(String message) {
        super(message);
    }

    public ExcelExportException(String message, ExcelExportEnum type) {
        super(message);
        this.type = type;
    }

    public ExcelExportEnum getType() {
        return type;
    }

    public void setType(ExcelExportEnum type) {
        this.type = type;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy