Skip to content

Line No is not getting printed in CSVParseException in CSVReader class #224

Description

@balwinderkumar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions