Table of Contents

Class CsvBindingException<T>

Namespace
FlameCsv.Exceptions
Assembly
FlameCsv.Core.dll

Represents errors in CSV member binding configuration, such as invalid member types or fields.

public sealed class CsvBindingException<T> : CsvBindingException, ISerializable

Type Parameters

T
Inheritance
CsvBindingException<T>
Implements

Constructors

CsvBindingException(CsvBinding<T>, CsvBinding<T>)

Throws an exception for conflicting bindings.

public CsvBindingException(CsvBinding<T> first, CsvBinding<T> second)

Parameters

first CsvBinding<T>
second CsvBinding<T>

CsvBindingException(string, IReadOnlyList<CsvBinding<T>>)

Initializes a CsvBindingException for invalid bindings.

public CsvBindingException(string message, IReadOnlyList<CsvBinding<T>> bindings)

Parameters

message string
bindings IReadOnlyList<CsvBinding<T>>

CsvBindingException(string?, Exception?)

Initializes a new instance.

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

Parameters

message string
innerException Exception

CsvBindingException(Type, ConstructorInfo, ConstructorInfo)

Throws an exception for conflicting constructor bindings.

public CsvBindingException(Type target, ConstructorInfo first, ConstructorInfo second)

Parameters

target Type
first ConstructorInfo
second ConstructorInfo

Properties

Bindings

Possible bindings that caused the exception.

public override IReadOnlyList<CsvBinding> Bindings { get; }

Property Value

IReadOnlyList<CsvBinding>

TargetType

Target type of the attempted binding.

public override Type TargetType { get; }

Property Value

Type