ValidationException

This is the base class for validation exception that are thrown when data inside data model objects is invalid.

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.FrameworkException

Constructors

ValidationException

Initializes a new instance of ValidationException.

Signature:
public Void ValidationException(msg, src)
Parameters
Name Type Summary
msg String Error message.
src String Source code reference.

ValidationException

Initializes a new instance of ValidationException.

Signature:
public Void ValidationException(property, msg, src)
Parameters
Name Type Summary
property String Property that error refers to.
msg String Error message.
src String Source code reference.

ValidationException

Initializes a new instance of ValidationException.

Signature:
public Void ValidationException(type, src)
Parameters
Name Type Summary
type Type The Type of the invalid object.
src String Source code reference.

Properties

Errors

Get the list of validation errors.

Signature:
public IList<ValidationException> Errors { get; }

Property

Gets or sets the name of the property that the error refers to.

Signature:
public String Property { get; set; }

Methods

ToString

Returns a textual representation of the ValidationException.

Signature:
public String ToString()
Returns

A textual representation of the validation exception