Table of Contents

Class SetInvalidFieldSizeException

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

Thrown when attempting to set a value that exceeds the maximum size defined for a field.

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

Remarks

This exception occurs when a value being set is larger than the field's defined maximum size. Common scenarios include inserting strings longer than VARCHAR/CHAR limits, setting binary data larger than VARBINARY limits, or exceeding precision constraints on numeric fields.

Constructors

SetInvalidFieldSizeException()

Initializes a new instance of the SetInvalidFieldSizeException class.

SetInvalidFieldSizeException(string)

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

Properties

FieldName

Gets or sets the name of the field that had a size constraint violation.

FieldSize

Gets or sets the maximum allowed size for the field.