BuildException Class

Summary

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

Syntax

[Serializable]
public class BuildException : ApplicationException

Attributes

Type Description
SerializableAttribute

Constructors

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

Properties

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

Methods

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