internal ExecutionErrorEventArgs(RecordProcessingException exception) { Exception = exception; RecordContext = exception.RecordContext; if (exception.InnerException != null && exception.InnerException is ColumnProcessingException columnException) { ColumnContext = columnException.ColumnContext; ColumnValue = columnException.ColumnValue; } }
internal ProcessingErrorEventArgs(RecordProcessingException exception) { this.Exception = exception; this.RecordNumber = exception.RecordNumber; if (exception.InnerException != null && exception.InnerException is ColumnProcessingException columnException) { this.Schema = columnException.Schema; this.ColumnDefinition = columnException.ColumnDefinition; this.ColumnValue = columnException.ColumnValue; } }
private void processError(RecordProcessingException exception) { if (metadata.Options.ErrorHandler != null) { var args = new ProcessingErrorEventArgs(exception); metadata.Options.ErrorHandler(this, args); if (args.IsHandled) { return; } } throw exception; }
internal RecordErrorEventArgs(RecordProcessingException exception) { this.exception = exception; }