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
converterstringThe name of the converter that failed to convert.
valueobjectThe 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
converterstringThe name of the converter that failed to convert.
valueobjectThe value that failed to convert.
messagestringThe 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
converterstringThe name of the converter that failed to convert.
valueobjectThe value that failed to convert.
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe 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
Value
Gets the value that failed to convert.
public object Value { get; }