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
stringThe full field unedited.
rawRecord
stringThe full row unedited.
context
CsvContextThe 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
stringThe full field unedited.
rawRecord
stringThe full row unedited.
context
CsvContextThe reading context.
message
stringThe 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
stringThe full field unedited.
rawRecord
stringThe full row unedited.
context
CsvContextThe reading context.
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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
RawRecord
The full row unedited.
public readonly string RawRecord