3 instantiations of ValidationException
System.ComponentModel.DataAnnotations (3)
DataAnnotations\ValidationAttribute.cs (2)
450
throw new
ValidationException
(this.FormatErrorMessage(name), this, value);
481
throw new
ValidationException
(result, this, value);
DataAnnotations\Validator.cs (1)
547
throw new
ValidationException
(this.ValidationResult, this.ValidationAttribute, this.Value);
17 references to ValidationException
System.ComponentModel.DataAnnotations (16)
DataAnnotations\ValidationAttribute.cs (7)
390
/// validation attribute without throwing a <see cref="
ValidationException
"/>
432
/// Validates the specified <paramref name="value"/> and throws <see cref="
ValidationException
"/> if it is not.
441
/// the problem, and it will throw a <see cref="
ValidationException
"/>
445
/// <exception cref="
ValidationException
"> is thrown if <see cref="IsValid(object)"/> returns <c>false</c>.
456
/// Validates the specified <paramref name="value"/> and throws <see cref="
ValidationException
"/> if it is not.
461
/// a <see cref="
ValidationException
"/> containing the <see cref="ValidationResult"/> describing the problem.
465
/// <exception cref="
ValidationException
"> is thrown if <see cref="IsValid(object, ValidationContext)"/>
DataAnnotations\Validator.cs (9)
175
/// Throws a <see cref="
ValidationException
"/> if the given property <paramref name="value"/> is not valid.
180
/// <exception cref="
ValidationException
">When <paramref name="value"/> is invalid for this property.</exception>
195
/// Throws a <see cref="
ValidationException
"/> if the given <paramref name="instance"/> is not valid.
206
/// <exception cref="
ValidationException
">When <paramref name="instance"/> is found to be invalid.</exception>
212
/// Throws a <see cref="
ValidationException
"/> if the given object instance is not valid.
225
/// <exception cref="
ValidationException
">When <paramref name="instance"/> is found to be invalid.</exception>
244
/// Throw a <see cref="
ValidationException
"/> if the given value is not valid for the <see cref="ValidationAttribute"/>s.
248
/// at which time a <see cref="
ValidationException
"/> is thrown.
257
/// <exception cref="
ValidationException
">When <paramref name="value"/> is found to be invalid.</exception>
System.Web.DynamicData (1)
DynamicData\DynamicValidator.cs (1)
224
if (Column == null && exception is
ValidationException
) {