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
ITypeConverterThe type converter.
memberMapData
MemberMapDataThe member map data.
value
objectThe value.
context
CsvContextThe 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
ITypeConverterThe type converter.
memberMapData
MemberMapDataThe member map data.
value
objectThe value.
context
CsvContextThe writing context.
message
stringThe 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
ITypeConverterThe type converter.
memberMapData
MemberMapDataThe member map data.
value
objectThe value.
context
CsvContextThe writing context.
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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
ITypeConverterThe type converter.
memberMapData
MemberMapDataThe member map data.
text
stringThe text.
context
CsvContextThe 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
ITypeConverterThe type converter.
memberMapData
MemberMapDataThe member map data.
text
stringThe text.
context
CsvContextThe reading context.
message
stringThe 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
ITypeConverterThe type converter.
memberMapData
MemberMapDataThe member map data.
text
stringThe text.
context
CsvContextThe reading context.
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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
Text
The text used in ConvertFromString.
public string? Text { get; }
Property Value
TypeConverter
The type converter.
public ITypeConverter TypeConverter { get; }
Property Value
Value
The value used in ConvertToString.
public object? Value { get; }