Throws an exception.
Namespace:
CuttingEdge.Conditions
Assembly:
CuttingEdge.Conditions (in CuttingEdge.Conditions.dll)
Syntax
JavaScript |
---|
function throwException(condition, additionalMessage, type); |
Parameters
- condition
- Type: System..::.String
Describes the condition that doesn't hold, e.g., "Value should not be
null".
- additionalMessage
- Type: System..::.String
An additional message that will be appended to the exception
message, e.g. "The actual value is 3.". This value may be null or empty.
- type
- Type: CuttingEdge.Conditions..::.ConstraintViolationType
Gives extra information on the exception type that must be build. The actual
implementation of the validator may ignore some or all values.
See Also