Class DocumentValidationError
- Namespace
- RetailForce.Fiscalisation.Model.Document
- Assembly
- RetailForce.Fiscalisation.Model.dll
Represents a document validation error.
public class DocumentValidationError : ValidationError
- Inheritance
-
ValidationErrorDocumentValidationError
- Inherited Members
-
ValidationError.ErrorLevelValidationError.ErrorTextValidationError.ErrorSource
Constructors
DocumentValidationError(ErrorLevel, DocumentLevel, string, string)
Constructor.
public DocumentValidationError(ErrorLevel errorLevel, DocumentLevel level, string errorText, string errorSource = "")
Parameters
errorLevelErrorLevelThe level of the error (errortype). Possible values are error, warning and information. See RetailForce.Common.Validation.ErrorLevel for more information.
levelDocumentLevelThe level of the error in the document. Possible values are header, position, payment. See
levelfor more information.errorTextstringThe description of the error.
errorSourcestringThe source module of the error. If omitted "Document" is assumed.
Exceptions
- ArgumentNullException
Thrown if
errorTextis set to null or empty string.
Properties
Level
The level of the error in the document. Possible values are header, position, payment.
public DocumentLevel Level { get; }
Property Value
Methods
ToString()
Returns the string representation for this DocumentValidationError.
public override string ToString()
Returns
- string
The string representation for this DocumentValidationError.