Save This Page
Home » apache-ant-1.8.1 » 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:
    UnsupportedAttributeException, UnsupportedElementException, BuildInterruptedException, ExitStatusException

Signals an error condition during a build
Fields inherited from java.lang.RuntimeException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
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:
getException,   getLocation,   setLocation,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.BuildException Detail:
 public Throwable getException() 
Deprecated! Use - #getCause instead.

    Returns the nested exception, if any.
 public Location getLocation() 
    Returns the file location where the error occurred.
 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.