Table of Contents

Class DocumentValidationError

Namespace
RetailForce.Fiscalisation.Model.Document
Assembly
RetailForce.Fiscalisation.Model.dll

Represents a document validation error.

public class DocumentValidationError : ValidationError
Inheritance
ValidationError
DocumentValidationError
Inherited Members
ValidationError.ErrorLevel
ValidationError.ErrorText
ValidationError.ErrorSource

Constructors

DocumentValidationError(ErrorLevel, DocumentLevel, string, string)

Constructor.

public DocumentValidationError(ErrorLevel errorLevel, DocumentLevel level, string errorText, string errorSource = "")

Parameters

errorLevel ErrorLevel

The level of the error (errortype). Possible values are error, warning and information. See RetailForce.Common.Validation.ErrorLevel for more information.

level DocumentLevel

The level of the error in the document. Possible values are header, position, payment. See level for more information.

errorText string

The description of the error.

errorSource string

The source module of the error. If omitted "Document" is assumed.

Exceptions

ArgumentNullException

Thrown if errorText is 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

DocumentLevel

Methods

ToString()

Returns the string representation for this DocumentValidationError.

public override string ToString()

Returns

string

The string representation for this DocumentValidationError.