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

cn.gjing.tools.excel.exception.ExcelAssertException Maven / Gradle / Ivy

There is a newer version: 2021.12.3
Show newest version
package cn.gjing.tools.excel.exception;

import cn.gjing.tools.excel.ExcelField;
import cn.gjing.tools.excel.read.valid.ExcelAssert;
import lombok.Getter;

import java.lang.reflect.Field;

/**
 * Excel assert exception, thrown by {@link ExcelAssert}
 * @author Gjing
 **/
@Getter
public class ExcelAssertException extends RuntimeException {
    private final ExcelField excelField;
    private final Field field;
    private final int rowIndex;
    private final int colIndex;

    public ExcelAssertException(String message, ExcelField excelField, Field field, int rowIndex, int colIndex) {
        super(message);
        this.excelField = excelField;
        this.field = field;
        this.rowIndex = rowIndex;
        this.colIndex = colIndex;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy