This is the base class for validation exception that are thrown when data inside data model objects is invalid.
Initializes a new instance of ValidationException.
public Void ValidationException(msg, src)
Name | Type | Summary |
---|---|---|
msg | String | Error message. |
src | String | Source code reference. |
Initializes a new instance of ValidationException.
public Void ValidationException(property, msg, src)
Name | Type | Summary |
---|---|---|
property | String | Property that error refers to. |
msg | String | Error message. |
src | String | Source code reference. |
Initializes a new instance of ValidationException.
public Void ValidationException(type, src)
Name | Type | Summary |
---|---|---|
type | Type | The Type of the invalid object. |
src | String | Source code reference. |
Get the list of validation errors.
public IList<ValidationException> Errors { get; }
Gets or sets the name of the property that the error refers to.
public String Property { get; set; }
Returns a textual representation of the ValidationException.
public String ToString()
A textual representation of the validation exception
In this document