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
fieldstringThe full field unedited.
rawRecordstringThe full row unedited.
contextCsvContextThe 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
fieldstringThe full field unedited.
rawRecordstringThe full row unedited.
contextCsvContextThe reading context.
messagestringThe 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
fieldstringThe full field unedited.
rawRecordstringThe full row unedited.
contextCsvContextThe reading context.
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe 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