NAnt SDK Documentation - v0.92 |

# ValidationException Constructor

Initializes a new instance of the ValidationException class.

#### Overload List

Initializes a new instance of the ValidationException class.

> public ValidationException();

Initializes a new instance of the ValidationException class with serialized data.

> protected ValidationException(SerializationInfo,StreamingContext);

Initializes a new instance of the ValidationException class with a descriptive message.

> public ValidationException(string);

Initializes a new instance of the ValidationException class with a descriptive message and the location in the build file that caused the exception.

> public ValidationException(string,Location);

Initializes a new instance of the ValidationException class with a descriptive message, the location in the build file and an instance of the exception that is the cause of the current exception.

> public ValidationException(string,Location,Exception);

Initializes a new instance of the ValidationException class with the specified descriptive message and inner exception.

> public ValidationException(string,Exception);

#### See Also

ValidationException Class | NAnt.Core Namespace