Table of Contents

Class HeaderValidationException

Namespace
CsvHelper
Assembly
CsvHelper.dll

Represents a header validation failure.

public class HeaderValidationException : ValidationException, ISerializable
Inheritance
HeaderValidationException
Implements
Inherited Members

Constructors

HeaderValidationException(CsvContext, InvalidHeader[])

Initializes a new instance of the ValidationException class.

public HeaderValidationException(CsvContext context, InvalidHeader[] invalidHeaders)

Parameters

context CsvContext

The reading context.

invalidHeaders InvalidHeader[]

The invalid headers.

HeaderValidationException(CsvContext, InvalidHeader[], string)

Initializes a new instance of the ValidationException class with a specified error message.

public HeaderValidationException(CsvContext context, InvalidHeader[] invalidHeaders, string message)

Parameters

context CsvContext

The reading context.

invalidHeaders InvalidHeader[]

The invalid headers.

message string

The message that describes the error.

HeaderValidationException(CsvContext, InvalidHeader[], string, Exception)

Initializes a new instance of the ValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public HeaderValidationException(CsvContext context, InvalidHeader[] invalidHeaders, string message, Exception innerException)

Parameters

context CsvContext

The reading context.

invalidHeaders InvalidHeader[]

The invalid headers.

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Properties

InvalidHeaders

Gets the invalid headers.

public InvalidHeader[] InvalidHeaders { get; }

Property Value

InvalidHeader[]