コード例 #1
0
 internal ExecutionErrorEventArgs(RecordProcessingException exception)
 {
     Exception     = exception;
     RecordContext = exception.RecordContext;
     if (exception.InnerException != null && exception.InnerException is ColumnProcessingException columnException)
     {
         ColumnContext = columnException.ColumnContext;
         ColumnValue   = columnException.ColumnValue;
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 internal RecordErrorEventArgs(RecordProcessingException exception)
 {
     this.exception = exception;
 }