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
stringbindings
IReadOnlyList<CsvBinding<T>>
CsvBindingException(string?, Exception?)
Initializes a new instance.
public CsvBindingException(string? message = null, Exception? innerException = null)
Parameters
CsvBindingException(Type, ConstructorInfo, ConstructorInfo)
Throws an exception for conflicting constructor bindings.
public CsvBindingException(Type target, ConstructorInfo first, ConstructorInfo second)
Parameters
target
Typefirst
ConstructorInfosecond
ConstructorInfo
Properties
Bindings
Possible bindings that caused the exception.
public override IReadOnlyList<CsvBinding> Bindings { get; }
Property Value
TargetType
Target type of the attempted binding.
public override Type TargetType { get; }