Table of Contents

Class CsvBindingException

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 : CsvConfigurationException, ISerializable
Inheritance
object
Exception
CsvBindingException
Implements

Constructors

CsvBindingException(CsvBinding, CsvBinding)

Throws an exception for conflicting bindings.

public CsvBindingException(CsvBinding first, CsvBinding second)

Parameters

first CsvBinding
second CsvBinding

CsvBindingException(string, IEnumerable<CsvBinding>)

Initializes a CsvBindingException for invalid bindings.

public CsvBindingException(string message, IEnumerable<CsvBinding> bindings)

Parameters

message string
bindings IEnumerable<CsvBinding>

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

CsvBindingException(Type?, string)

Initializes a new instance.

public CsvBindingException(Type? targetType, string message)

Parameters

targetType Type
message string

Properties

Bindings

Bindings that relate to the exception (if known).

public IEnumerable<CsvBinding>? Bindings { get; set; }

Property Value

IEnumerable<CsvBinding>

Headers

Headers that were used to bind the CSV.

public IEnumerable<string>? Headers { get; set; }

Property Value

IEnumerable<string>

TargetType

Target type of the attempted binding.

public Type? TargetType { get; set; }

Property Value

Type