示例#1
0
 private void processError(RecordProcessingException exception)
 {
     if (options.ErrorHandler != null)
     {
         var args = new ProcessingErrorEventArgs(exception);
         options.ErrorHandler(this, args);
         if (args.IsHandled)
         {
             return;
         }
     }
     throw exception;
 }
示例#2
0
        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;
            }
        }