Class CrossIndustryInvoiceReaderException
Represent an exception that occurs during the parsing of a FacturXDotNet.Models.CII.CrossIndustryInvoice.
Assembly: FacturXDotNet.dll
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.
public static CrossIndustryInvoiceReaderException ParsingError(ReadOnlySpan<char> path, int line, int column, string message)
Returns
FacturXDotNet.Parsing.CII.Exceptions.CrossIndustryInvoiceReaderException
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | path | The XPath where the exception occurs |
System.Int32 | line | The line of the file where the exception occurs |
System.Int32 | column | The column of the file where the exception occurs |
System.String | message | The message of the exception |
ParsingError(ReadOnlySpan<char>, int, int, Exception)
Represent an exception that occurs while reading a FacturXDotNet.Models.CII.CrossIndustryInvoice.
public static CrossIndustryInvoiceReaderException ParsingError(ReadOnlySpan<char> path, int line, int column, Exception exception)
Returns
FacturXDotNet.Parsing.CII.Exceptions.CrossIndustryInvoiceReaderException
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | path | The XPath where the exception occurs |
System.Int32 | line | The line of the file where the exception occurs |
System.Int32 | column | The column of the file where the exception occurs |
System.Exception | exception | The exception that occurred |
ValidationError(params IEnumerable<string>)
Represent an exception that occurs while validating the FacturXDotNet.Models.CII.CrossIndustryInvoice that has been read.
public static CrossIndustryInvoiceReaderException ValidationError(params IEnumerable<string> errors)
Returns
FacturXDotNet.Parsing.CII.Exceptions.CrossIndustryInvoiceReaderException
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | errors | The errors that occurred during the validation |
Implements
System.Runtime.Serialization.ISerializable