Table of Contents

Class WrongDataTypeException

Namespace
YndigoBlue.Velocity.Exceptions
Assembly
YndigoBlue.Velocity.dll

Thrown when attempting to access or set a field value using an incompatible data type.

[Serializable]
public class WrongDataTypeException : Exception, ISerializable
Inheritance
WrongDataTypeException
Implements

Remarks

This exception occurs when there is a type mismatch between the expected data type and the actual data type being used. Common scenarios include trying to read a VARCHAR field as an integer, attempting to set a date field with a string value, or using the wrong strongly-typed getter/setter method for a field's actual data type.

Constructors

WrongDataTypeException()

Initializes a new instance of the WrongDataTypeException class.

WrongDataTypeException(string)

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

Properties

FieldName

Gets or sets the name of the field that had a data type mismatch.

FieldType

Gets or sets the actual data type of the field.