forcedotcom / forcedotcom/wsc

Line No is not getting printed in CSVParseException in CSVReader class

Open
#224 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
276
Forks
223
PR merge metrics
No merged PRs in 30d

Description

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);
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.