Skip to content

Class CrossIndustryInvoiceReaderException

Represent an exception that occurs during the parsing of a FacturXDotNet.Models.CII.CrossIndustryInvoice.

Assembly: FacturXDotNet.dll
csharp
public class CrossIndustryInvoiceReaderException : FacturXDotNetException, ISerializable

Inheritance: System.Object -> System.Exception -> FacturXDotNet.Exceptions.FacturXDotNetException

Implements:
System.Runtime.Serialization.ISerializable

Methods

ParsingError(ReadOnlySpan<char>, int, int, string)

Represent an exception that occurs while reading a FacturXDotNet.Models.CII.CrossIndustryInvoice.

csharp
public static CrossIndustryInvoiceReaderException ParsingError(ReadOnlySpan<char> path, int line, int column, string message)
Returns

FacturXDotNet.Parsing.CII.Exceptions.CrossIndustryInvoiceReaderException

Parameters
TypeNameDescription
System.ReadOnlySpan<System.Char>pathThe XPath where the exception occurs
System.Int32lineThe line of the file where the exception occurs
System.Int32columnThe column of the file where the exception occurs
System.StringmessageThe message of the exception

ParsingError(ReadOnlySpan<char>, int, int, Exception)

Represent an exception that occurs while reading a FacturXDotNet.Models.CII.CrossIndustryInvoice.

csharp
public static CrossIndustryInvoiceReaderException ParsingError(ReadOnlySpan<char> path, int line, int column, Exception exception)
Returns

FacturXDotNet.Parsing.CII.Exceptions.CrossIndustryInvoiceReaderException

Parameters
TypeNameDescription
System.ReadOnlySpan<System.Char>pathThe XPath where the exception occurs
System.Int32lineThe line of the file where the exception occurs
System.Int32columnThe column of the file where the exception occurs
System.ExceptionexceptionThe exception that occurred

ValidationError(params IEnumerable<string>)

Represent an exception that occurs while validating the FacturXDotNet.Models.CII.CrossIndustryInvoice that has been read.

csharp
public static CrossIndustryInvoiceReaderException ValidationError(params IEnumerable<string> errors)
Returns

FacturXDotNet.Parsing.CII.Exceptions.CrossIndustryInvoiceReaderException

Parameters
TypeNameDescription
System.Collections.Generic.IEnumerable<System.String>errorsThe errors that occurred during the validation

Implements

  • System.Runtime.Serialization.ISerializable

The tools are open source and released under the MIT License, feel free to use, modify, and share.