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
-
objectExceptionCsvBindingException
- Implements
Constructors
CsvBindingException(CsvBinding, CsvBinding)
Throws an exception for conflicting bindings.
public CsvBindingException(CsvBinding first, CsvBinding second)
Parameters
first
CsvBindingsecond
CsvBinding
CsvBindingException(string, IEnumerable<CsvBinding>)
Initializes a CsvBindingException for invalid bindings.
public CsvBindingException(string message, IEnumerable<CsvBinding> bindings)
Parameters
message
stringbindings
IEnumerable<CsvBinding>
CsvBindingException(string?, Exception?)
Initializes a new instance.
public CsvBindingException(string? message = null, Exception? innerException = null)
Parameters
message
stringinnerException
Exception
CsvBindingException(Type, ConstructorInfo, ConstructorInfo)
Throws an exception for conflicting constructor bindings.
public CsvBindingException(Type target, ConstructorInfo first, ConstructorInfo second)
Parameters
target
Typefirst
ConstructorInfosecond
ConstructorInfo
CsvBindingException(Type?, string)
Initializes a new instance.
public CsvBindingException(Type? targetType, string message)
Parameters
Properties
Bindings
Bindings that relate to the exception (if known).
public IEnumerable<CsvBinding>? Bindings { get; set; }
Property Value
Headers
Headers that were used to bind the CSV.
public IEnumerable<string>? Headers { get; set; }
Property Value
TargetType
Target type of the attempted binding.
public Type? TargetType { get; set; }