private void processError(RecordProcessingException exception) { if (options.ErrorHandler != null) { var args = new ProcessingErrorEventArgs(exception); options.ErrorHandler(this, args); if (args.IsHandled) { return; } } throw exception; }
internal ProcessingErrorEventArgs(RecordProcessingException exception) { this.Exception = exception; this.RecordNumber = exception.RecordNumber; ColumnProcessingException columnException = exception.InnerException as ColumnProcessingException; if (columnException != null) { this.Schema = columnException.Schema; this.ColumnDefinition = columnException.ColumnDefinition; this.ColumnValue = columnException.ColumnValue; } }