Table of Contents

Class TypeConverterException

Namespace
CsvHelper.TypeConversion
Assembly
CsvHelper.dll

Represents errors that occur while reading a CSV file.

public class TypeConverterException : CsvHelperException, ISerializable
Inheritance
TypeConverterException
Implements
Inherited Members

Constructors

TypeConverterException(ITypeConverter, MemberMapData, object?, CsvContext)

Initializes a new instance of the TypeConverterException class.

public TypeConverterException(ITypeConverter typeConverter, MemberMapData memberMapData, object? value, CsvContext context)

Parameters

typeConverter ITypeConverter

The type converter.

memberMapData MemberMapData

The member map data.

value object

The value.

context CsvContext

The writing context.

TypeConverterException(ITypeConverter, MemberMapData, object?, CsvContext, string)

Initializes a new instance of the TypeConverterException class with a specified error message.

public TypeConverterException(ITypeConverter typeConverter, MemberMapData memberMapData, object? value, CsvContext context, string message)

Parameters

typeConverter ITypeConverter

The type converter.

memberMapData MemberMapData

The member map data.

value object

The value.

context CsvContext

The writing context.

message string

The message that describes the error.

TypeConverterException(ITypeConverter, MemberMapData, object?, CsvContext, string, Exception)

Initializes a new instance of the TypeConverterException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public TypeConverterException(ITypeConverter typeConverter, MemberMapData memberMapData, object? value, CsvContext context, string message, Exception innerException)

Parameters

typeConverter ITypeConverter

The type converter.

memberMapData MemberMapData

The member map data.

value object

The value.

context CsvContext

The writing context.

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

TypeConverterException(ITypeConverter, MemberMapData, string?, CsvContext)

Initializes a new instance of the TypeConverterException class.

public TypeConverterException(ITypeConverter typeConverter, MemberMapData memberMapData, string? text, CsvContext context)

Parameters

typeConverter ITypeConverter

The type converter.

memberMapData MemberMapData

The member map data.

text string

The text.

context CsvContext

The reading context.

TypeConverterException(ITypeConverter, MemberMapData, string?, CsvContext, string)

Initializes a new instance of the TypeConverterException class with a specified error message.

public TypeConverterException(ITypeConverter typeConverter, MemberMapData memberMapData, string? text, CsvContext context, string message)

Parameters

typeConverter ITypeConverter

The type converter.

memberMapData MemberMapData

The member map data.

text string

The text.

context CsvContext

The reading context.

message string

The message that describes the error.

TypeConverterException(ITypeConverter, MemberMapData, string?, CsvContext, string, Exception)

Initializes a new instance of the TypeConverterException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public TypeConverterException(ITypeConverter typeConverter, MemberMapData memberMapData, string? text, CsvContext context, string message, Exception innerException)

Parameters

typeConverter ITypeConverter

The type converter.

memberMapData MemberMapData

The member map data.

text string

The text.

context CsvContext

The reading context.

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Properties

MemberMapData

The member map data used in ConvertFromString and ConvertToString.

public MemberMapData MemberMapData { get; }

Property Value

MemberMapData

Text

The text used in ConvertFromString.

public string? Text { get; }

Property Value

string

TypeConverter

The type converter.

public ITypeConverter TypeConverter { get; }

Property Value

ITypeConverter

Value

The value used in ConvertToString.

public object? Value { get; }

Property Value

object