Menu

#156 Cell Number in CsvException

open
nobody
None
5
2022-12-16
2022-12-15
No

It would be great to be able to have CellNumber the same way we have LineNumber the CsvException.

We could use the logic used for LineNumber (-1 when not relevent,possible...)

Discussion

  • Andrew Rucker Jones

    • assigned_to: Andrew Rucker Jones
     
  • Andrew Rucker Jones

    What do you consider to be the cell number? Do you mean the column number?

     
  • Youssef El Houti

    @aruckerjones Indeed, indeed

     
  • Andrew Rucker Jones

    • assigned_to: Andrew Rucker Jones --> nobody
     
  • Andrew Rucker Jones

    I admit, when I was recently adjusting the opencsv tests to work with Java 17, this information would have been helpful, yet somehow, I failed to see that.

    It would not make sense to put the column number in CsvException. Too many usages and subclasses of CsvException would never use it. Something farther down, such as CsvFieldAssignmentException or perhaps a new intermediate class in the hierarchy, would provide more fine-tuned use of the field for only the situations that need it.

    I am no longer actively developing with the project, so I will leave this ticket here for anyone else who wants to tackle it. You are, of course, welcome to submit a patch yourself.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.