Table of Contents

Class InvalidDataConversionException

Namespace
MADE.Data.Converters.Exceptions
Assembly
MADE.Data.Converters.dll

Defines an exception thrown when a data conversion has failed.

public class InvalidDataConversionException : Exception, ISerializable
Inheritance
InvalidDataConversionException
Implements
Inherited Members
Extension Methods

Constructors

InvalidDataConversionException(string, object)

Initializes a new instance of the InvalidDataConversionException class.

public InvalidDataConversionException(string converter, object value)

Parameters

converter string

The name of the converter that failed to convert.

value object

The value that failed to convert.

InvalidDataConversionException(string, object, string)

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

public InvalidDataConversionException(string converter, object value, string message)

Parameters

converter string

The name of the converter that failed to convert.

value object

The value that failed to convert.

message string

The message that describes the error.

InvalidDataConversionException(string, object, string, Exception)

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

public InvalidDataConversionException(string converter, object value, string message, Exception innerException)

Parameters

converter string

The name of the converter that failed to convert.

value object

The value that failed to convert.

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 if no inner exception is specified.

Properties

Converter

Gets the name of the converter that failed to convert.

public string Converter { get; }

Property Value

string

Value

Gets the value that failed to convert.

public object Value { get; }

Property Value

object