Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » [javadoc | source]
org.apache.tools.ant
public class: BuildException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.apache.tools.ant.BuildException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    BuildInterruptedException, ExitStatusException, UnsupportedElementException, UnsupportedAttributeException

Signals an error condition during a build
Constructor:
 public BuildException() 
 public BuildException(String message) 
    Constructs an exception with the given descriptive message.
    Parameters:
    message - A description of or information about the exception. Should not be null.
 public BuildException(Throwable cause) 
    Constructs an exception with the given exception as a root cause.
    Parameters:
    cause - The exception that might have caused this one. Should not be null.
 public BuildException(String message,
    Throwable cause) 
    Constructs an exception with the given message and exception as a root cause.
    Parameters:
    message - A description of or information about the exception. Should not be null unless a cause is specified.
    cause - The exception that might have caused this one. May be null.
 public BuildException(String message,
    Location location) 
    Constructs an exception with the given descriptive message and a location in a file.
    Parameters:
    message - A description of or information about the exception. Should not be null.
    location - The location in the project file where the error occurred. Must not be null.
 public BuildException(Throwable cause,
    Location location) 
    Constructs an exception with the given exception as a root cause and a location in a file.
    Parameters:
    cause - The exception that might have caused this one. Should not be null.
    location - The location in the project file where the error occurred. Must not be null.
 public BuildException(String msg,
    Throwable cause,
    Location location) 
    Constructs an exception with the given message and exception as a root cause and a location in a file.
    Parameters:
    msg - A description of or information about the exception. Should not be null unless a cause is specified.
    cause - The exception that might have caused this one. May be null.
    location - The location in the project file where the error occurred. Must not be null.
Method from org.apache.tools.ant.BuildException Summary:
getCause,   getException,   getLocation,   printStackTrace,   printStackTrace,   printStackTrace,   setLocation,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.BuildException Detail:
 public Throwable getCause() 
    Returns the nested exception, if any.
 public Throwable getException() 
    Returns the nested exception, if any.
 public Location getLocation() 
    Returns the file location where the error occurred.
 public  void printStackTrace() 
    Prints the stack trace for this exception and any nested exception to System.err.
 public  void printStackTrace(PrintStream ps) 
    Prints the stack trace of this exception and any nested exception to the specified PrintStream.
 public  void printStackTrace(PrintWriter pw) 
    Prints the stack trace of this exception and any nested exception to the specified PrintWriter.
 public  void setLocation(Location location) 
    Sets the file location where the error occurred.
 public String toString() 
    Returns the location of the error and the error message.