Class MissingFieldException
- Namespace
- CsvHelper
- Assembly
- CsvHelper.dll
Represents an error caused because a field is missing in the header while reading a CSV file.
public class MissingFieldException : ReaderException, ISerializable
- Inheritance
-
MissingFieldException
- Implements
- Inherited Members
Constructors
MissingFieldException(CsvContext)
Initializes a new instance of the MissingFieldException class.
public MissingFieldException(CsvContext context)
Parameters
contextCsvContextThe reading context.
MissingFieldException(CsvContext, string)
Initializes a new instance of the MissingFieldException class with a specified error message.
public MissingFieldException(CsvContext context, string message)
Parameters
contextCsvContextThe reading context.
messagestringThe message that describes the error.
MissingFieldException(CsvContext, string, Exception)
Initializes a new instance of the MissingFieldException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public MissingFieldException(CsvContext context, string message, Exception innerException)
Parameters
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.