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

org.supercsv.ext.exception.SuperCsvNoMatchColumnSizeException Maven / Gradle / Ivy

/*
 * SuperCsvNoMatchColumnSizeException.java
 * created in 2013/03/09
 *
 * (C) Copyright 2003-2013 GreenDay Project. All rights reserved.
 */
package org.supercsv.ext.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) { super(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