To Reproduce
Create a reader and subscribe to RecordError event
reader.RecordError += new EventHandler<RecordErrorEventArgs>((sender, args) =>
{
// args.Exception is null
});
Expected behavior
The type of Exception property should be RecordProcessingException and the RecordErrorEventArgs's constructor should set the passed argument directly to the property. The private field should be removed.
Describe the bug RecordErrorEventArgs sets the exception passed to the constructor to a private field that is never used https://github.com/jehugaleahsa/FlatFiles/blob/66fe13f752fa5beecd2408519516d4c196e79186/FlatFiles/RecordErrorEventArgs.cs#L14
then the Exception properyt is always null
To Reproduce Create a reader and subscribe to RecordError event
Expected behavior The type of Exception property should be RecordProcessingException and the RecordErrorEventArgs's constructor should set the passed argument directly to the property. The private field should be removed.
Version: 4.3.1.1