NAnt SDK Documentation - v0.92 |

# BuildException Constructor

Initializes a new instance of the BuildException class.

#### Overload List

Initializes a new instance of the BuildException class.

> public BuildException();

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

> protected BuildException(SerializationInfo,StreamingContext);

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

> public BuildException(string);

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

> public BuildException(string,Location);

Initializes a new instance of the BuildException 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 BuildException(string,Location,Exception);

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

> public BuildException(string,Exception);

#### See Also

BuildException Class | NAnt.Core Namespace