ru.d_shap.csv.WrongColumnCountException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of csv Show documentation
Show all versions of csv Show documentation
CSV parser converts source stream to rows and columns and vice versa
The newest version!
///////////////////////////////////////////////////////////////////////////////////////////////////
// CSV parser converts source stream to rows and columns and vice versa.
// Copyright (C) 2016 Dmitry Shapovalov.
//
// This file is part of CSV parser.
//
// CSV parser is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// CSV parser is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see .
///////////////////////////////////////////////////////////////////////////////////////////////////
package ru.d_shap.csv;
/**
* Exception in thrown when CSV has rows with different column count.
*
* @author Dmitry Shapovalov
*/
public class WrongColumnCountException extends CsvException {
private static final long serialVersionUID = 1L;
/**
* Create a new object.
*/
public WrongColumnCountException() {
super("CSV has rows with different column count.");
}
/**
* Create a new object.
*
* @param lastProcessedCharacters last characters processed by CSV parser.
*/
public WrongColumnCountException(final String lastProcessedCharacters) {
super("CSV has rows with different column count.", lastProcessedCharacters);
}
}