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
- fieldstring
- The full field unedited. 
- rawRecordstring
- The full row unedited. 
- contextCsvContext
- 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
- fieldstring
- The full field unedited. 
- rawRecordstring
- The full row unedited. 
- contextCsvContext
- The reading context. 
- messagestring
- 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
- fieldstring
- The full field unedited. 
- rawRecordstring
- The full row unedited. 
- contextCsvContext
- The reading context. 
- messagestring
- The error message that explains the reason for the exception. 
- innerExceptionException
- 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 FieldField Value
RawRecord
The full row unedited.
public readonly string RawRecord