Table of Contents

Class BadDataException

Namespace
CsvHelper
Assembly
CsvHelper.dll

Represents errors that occur due to bad data.

public class BadDataException : CsvHelperException, ISerializable
Inheritance
BadDataException
Implements
Inherited Members

Constructors

BadDataException(string, string, CsvContext)

Initializes a new instance of the BadDataException class.

public BadDataException(string field, string rawRecord, CsvContext context)

Parameters

field string

The full field unedited.

rawRecord string

The full row unedited.

context CsvContext

The reading context.

BadDataException(string, string, CsvContext, string)

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

public BadDataException(string field, string rawRecord, CsvContext context, string message)

Parameters

field string

The full field unedited.

rawRecord string

The full row unedited.

context CsvContext

The reading context.

message string

The message that describes the error.

BadDataException(string, string, CsvContext, string, Exception)

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

public BadDataException(string field, string rawRecord, CsvContext context, string message, Exception innerException)

Parameters

field string

The full field unedited.

rawRecord string

The full row unedited.

context CsvContext

The reading context.

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.

Fields

Field

The full field unedited.

public readonly string Field

Field Value

string

RawRecord

The full row unedited.

public readonly string RawRecord

Field Value

string