Skip to content

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

@balwinderkumar

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

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