JoshClose / CsvHelper

Library to help reading and writing CSV files
http://joshclose.github.io/CsvHelper/
Other
4.63k stars 1.05k forks source link

[Feature Request] Allow No Additional Messages to Be Returned When Manually Throwing CsvHelperException #2267

Open develop-gby opened 3 weeks ago

develop-gby commented 3 weeks ago

I've noticed that there's no way to remove the information of the static AddDetails method when manually throwing a CsvHelperException.

Is it possible to create a constructor of that exception (or more generally of all exceptions involving CsvHelper) that allows you do not include details about the state of the Context class?

I am referring to the following method:

image