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

com.github.mygreen.supercsv.exception.SuperCsvNoMatchColumnSizeException Maven / Gradle / Ivy

Go to download

CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。

There is a newer version: 2.3
Show newest version
package com.github.mygreen.supercsv.exception;

import org.supercsv.exception.SuperCsvException;
import org.supercsv.util.CsvContext;


/**
 * The number of columns to be processed must match the number of CellProcessors
 * 

列のサイズが、CellProcessorやマッピングで定義したサイズと異なる場合にスローされる例外。 * * @author T.TSUCHIE * */ public class SuperCsvNoMatchColumnSizeException extends SuperCsvException { /** serialVersionUID */ private static final long serialVersionUID = 1L; protected final int actualColumnSize; protected final int epxpectedColumnSize; public SuperCsvNoMatchColumnSizeException(final int actualColumnSize, final int epxpectedColumnSize, final CsvContext context) { this("", actualColumnSize, epxpectedColumnSize, context); } public SuperCsvNoMatchColumnSizeException(final String message, final int actualColumnSize, final int epxpectedColumnSize, final CsvContext context) { super(message + String.format("The number of columns to be processed (%d) must match the number of CellProcessors (%d): check that the number" + " of CellProcessors you have defined matches the expected number of columns being read/written", actualColumnSize, epxpectedColumnSize), context); this.actualColumnSize = actualColumnSize; this.epxpectedColumnSize = epxpectedColumnSize; } public int getActualColumnSize() { return actualColumnSize; } public int getEpxpectedColumnSize() { return epxpectedColumnSize; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy