CsvDeserializationErrorKind Enum

Specifies the kind of error reported to CsvSerializerOptions.DeserializationErrorHandler.

public enum CsvDeserializationErrorKind

Fields

NameValueDescription
ConversionFailed0The value of a column cannot be converted to the type of its member. CsvDeserializationErrorContext.Exception has the error of the converter as its inner exception.
MissingRequiredValue1The record ends before the column of a required member, with or without a header row.
MissingColumn2The header row has no column for a required member, or for a member when CsvSerializerOptions.MissingColumnHandling is CsvMissingColumnHandling.Throw.
UnmappedColumn3A column has no member and CsvSerializerOptions.UnmappedColumnHandling is CsvUnmappedColumnHandling.Throw: a column of the header row, or a column after the last member in data without a header row.