ConstraintViolationType Enumeration

CuttingEdge.Conditions

This enumeration is used to determine the type of exception the validator should throw.

Namespace:  CuttingEdge.Conditions
Assembly:  CuttingEdge.Conditions (in CuttingEdge.Conditions.dll)

Syntax

Visual Basic (Declaration)
Public Enumeration ConstraintViolationType
C#
public enum ConstraintViolationType
Visual C++
public enum class ConstraintViolationType
JavaScript
CuttingEdge.Conditions.ConstraintViolationType = function();
CuttingEdge.Conditions.ConstraintViolationType.createEnum('CuttingEdge.Conditions.ConstraintViolationType', false);

Members

Member nameDescription
Default
Lets the Validator to throw the default exception for that instance.
OutOfRangeViolation
Lets the Validator optionally throw an exception type appropriate for values that are out of range.
InvalidEnumViolation
Lets the Validator optionally throw an InvalidEnumArgumentException.

See Also