Exemplo n.º 1
0
 /// <summary>
 /// ValidationError constructor that assumes the error has a type of 'Row'.
 /// </summary>
 /// <param name="RowPosition">Position of the file row that generated the error.</param>
 /// <param name="Message">Message describing the error.</param>
 /// <param name="ValidationErrorSeverity">Indicates whether the error is critical.  Defaults to 'true'.</param>
 public ValidationError(int RowPosition, string RowDisposition, string Message, ValidationErrorSeverity Severity = ValidationErrorSeverity.Critical)
 {
     this.Scope          = ValidationErrorScope.Row;
     this.RowPosition    = RowPosition;
     this.RowDisposition = RowDisposition;
     this.Message        = Message;
     this.Severity       = Severity;
 }
Exemplo n.º 2
0
 /// <summary>
 /// ValidationError constructor that assumes the error has a type of 'Column'.
 /// </summary>
 /// <param name="ColumnPosition">Position of the column that generated the error.</param>
 /// <param name="ColumnLabel">Label of the column that generated the error.</param>
 /// <param name="RowPosition">Position of the file row that generated the error.</param>
 /// <param name="Message">Message describing the error.</param>
 /// <param name="ValidationErrorSeverity">Indicates whether the error is critical.  Defaults to Critical.</param>
 public ValidationError(int RowPosition, string RowDisposition, int ColumnPosition, string ColumnLabel, string Message, ValidationErrorSeverity Severity = ValidationErrorSeverity.Critical)
 {
     this.Scope          = ValidationErrorScope.Column;
     this.RowPosition    = RowPosition;
     this.RowDisposition = RowDisposition;
     this.ColumnLabel    = ColumnLabel;
     this.ColumnPosition = ColumnPosition;
     this.Message        = Message;
     this.Severity       = Severity;
 }
Exemplo n.º 3
0
 /// <summary>
 /// ValidationError constructor that assumes the error has a type of 'File'.
 /// </summary>
 /// <param name="Message">Message describing the error.</param>
 /// <param name="ValidationErrorSeverity">Indicates whether the error is critical.  Defaults to 'true'.</param>
 public ValidationError(string Message, ValidationErrorSeverity Severity = ValidationErrorSeverity.Critical)
 {
     this.Scope    = ValidationErrorScope.File;
     this.Message  = Message;
     this.Severity = Severity;
 }