ValidationException Class

Summary

Thrown whenever an error occurs during the build.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Base Types
graph BT Type-->Base0["BuildException"] click Base0 "/api/NAnt.Core/BuildException" Base0-->Base1["ApplicationException"] Type["ValidationException"] class Type type-node

Syntax

[Serializable()]
public class ValidationException : BuildException

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
ValidationException() Initializes a new instance of the NAnt.Core.ValidationException class.
ValidationException(SerializationInfo, StreamingContext) Initializes a new instance of the NAnt.Core.ValidationException class with serialized data.
ValidationException(string) Initializes a new instance of the NAnt.Core.ValidationException class with a descriptive message.
ValidationException(string, Exception) Initializes a new instance of the NAnt.Core.ValidationException class with the specified descriptive message and inner exception.
ValidationException(string, Location) Initializes a new instance of the NAnt.Core.ValidationException class with a descriptive message and the location in the build file that caused the exception.
ValidationException(string, Location, Exception) Initializes a new instance of the NAnt.Core.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.

Properties

Name Value Summary
Location Location
Gets the location in the build file of the element from which the exception originated.
Inherited from BuildException
Message string
Gets a message that describes the current exception.
Inherited from BuildException
RawMessage string
Gets the raw message as specified when the exception was constructed.
Inherited from BuildException

Methods

Name Value Summary
GetObjectData(SerializationInfo, StreamingContext) void
Serializes this object into the System.Runtime.Serialization.SerializationInfo provided.
Inherited from BuildException
ToString() string
Creates and returns a string representation of the current exception.
Inherited from BuildException