Table of Contents

Class CsvFormatException

Namespace
FlameCsv.Exceptions
Assembly
FlameCsv.Core.dll

Represents unrecoverable format errors in the CSV, such as invalid quotes within a field.
This exception is not handled by ExceptionHandler.

public sealed class CsvFormatException : Exception, ISerializable
Inheritance
object
Exception
CsvFormatException
Implements

Remarks

Initializes an exception representing invalid CSV format.

Constructors

CsvFormatException(string?, Exception?)

Represents unrecoverable format errors in the CSV, such as invalid quotes within a field.
This exception is not handled by ExceptionHandler.

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

Parameters

message string
innerException Exception

Remarks

Initializes an exception representing invalid CSV format.

Properties

Line

1-based line index of where the invalid data was found, if available.

public int? Line { get; set; }

Property Value

int?

Position

Approximate 0-based index where the invalid data was found, if available.

public long? Position { get; set; }

Property Value

long?

Record

The CSV record that caused the exception, if available.

public string? Record { get; set; }

Property Value

string