If there is any exception in record while parsing, line is not appearing in exception message, as CSVParseException is not appending the line no. to exception message.
CSVParseException(String message, int lineno) {
super(message);
recordNumber = lineno;
}
this method should be
CSVParseException(String message, int lineno) {
recordNumber = lineno;
super(message+" at line "+recordNumber);
}
If there is any exception in record while parsing, line is not appearing in exception message, as CSVParseException is not appending the line no. to exception message.
CSVParseException(String message, int lineno) { super(message); recordNumber = lineno; }
this method should be CSVParseException(String message, int lineno) { recordNumber = lineno; super(message+" at line "+recordNumber); }