Table of Contents

Class CsvReadException

Namespace
FlameCsv.Exceptions
Assembly
FlameCsv.Core.dll

Thrown for faulty but structurally valid CSV, such as wrong field count on a line.

public class CsvReadException : Exception, ISerializable
Inheritance
CsvReadException
Implements

Constructors

CsvReadException(string?, Exception?)

Thrown for faulty but structurally valid CSV, such as wrong field count on a line.

public CsvReadException(string? message = null, Exception? innerException = null)

Parameters

message string
innerException Exception

Methods

ThrowForInvalidFieldCount(int, int)

Throws an exception for a CSV record having an invalid number of fields.

[DoesNotReturn]
public static void ThrowForInvalidFieldCount(int expected, int actual)

Parameters

expected int
actual int

Exceptions

CsvReadException