CsvDeserializationErrorKind Enum
Specifies the kind of error reported to CsvSerializerOptions.DeserializationErrorHandler.
public enum CsvDeserializationErrorKindFields
| Name | Value | Description |
|---|---|---|
ConversionFailed | 0 | The 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. |
MissingRequiredValue | 1 | The record ends before the column of a required member, with or without a header row. |
MissingColumn | 2 | The header row has no column for a required member, or for a member when CsvSerializerOptions.MissingColumnHandling is CsvMissingColumnHandling.Throw. |
UnmappedColumn | 3 | A 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. |