| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.tools.ant.BuildException
All known Subclasses: org.apache.tools.ant.UnsupportedAttributeException, org.apache.tools.ant.ExitStatusException, org.apache.tools.ant.UnsupportedElementException,
BuildException | public class BuildException extends RuntimeException (Code) | | Signals an error condition during a build
|
Constructor Summary | |
public | BuildException() Constructs a build exception with no descriptive information. | public | BuildException(String message) Constructs an exception with the given descriptive message. | public | BuildException(String message, Throwable cause) Constructs an exception with the given message and exception as
a root cause. | 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. Parameters: cause - The exception that might have caused this one.May be null . Parameters: location - The location in the project file where the erroroccurred. | public | BuildException(Throwable cause) Constructs an exception with the given exception as a root cause. | 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 . Parameters: location - The location in the project file where the erroroccurred. | 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 . Parameters: location - The location in the project file where the erroroccurred. |
BuildException | public BuildException()(Code) | | Constructs a build exception with no descriptive information.
|
BuildException | public BuildException(String message)(Code) | | Constructs an exception with the given descriptive message.
Parameters: message - A description of or information about the exception.Should not be null . |
BuildException | public BuildException(String message, Throwable cause)(Code) | | 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. Parameters: cause - The exception that might have caused this one.May be null . |
BuildException | public BuildException(String msg, Throwable cause, Location location)(Code) | | 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. Parameters: cause - The exception that might have caused this one.May be null . Parameters: location - The location in the project file where the erroroccurred. Must not be null . |
BuildException | public BuildException(Throwable cause)(Code) | | 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 . |
BuildException | public BuildException(String message, Location location)(Code) | | 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 . Parameters: location - The location in the project file where the erroroccurred. Must not be null . |
BuildException | public BuildException(Throwable cause, Location location)(Code) | | 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 . Parameters: location - The location in the project file where the erroroccurred. Must not be null . |
getCause | public Throwable getCause()(Code) | | Returns the nested exception, if any.
the nested exception, or null if noexception is associated with this one |
getException | public Throwable getException()(Code) | | Returns the nested exception, if any.
the nested exception, or null if noexception is associated with this one |
getLocation | public Location getLocation()(Code) | | Returns the file location where the error occurred.
the file location where the error occurred. |
printStackTrace | public void printStackTrace()(Code) | | Prints the stack trace for this exception and any
nested exception to System.err .
|
printStackTrace | public void printStackTrace(PrintStream ps)(Code) | | Prints the stack trace of this exception and any nested
exception to the specified PrintStream.
Parameters: ps - The PrintStream to print the stack trace to.Must not be null . |
printStackTrace | public void printStackTrace(PrintWriter pw)(Code) | | Prints the stack trace of this exception and any nested
exception to the specified PrintWriter.
Parameters: pw - The PrintWriter to print the stack trace to.Must not be null . |
setLocation | public void setLocation(Location location)(Code) | | Sets the file location where the error occurred.
Parameters: location - The file location where the error occurred.Must not be null . |
toString | public String toString()(Code) | | Returns the location of the error and the error message.
the location of the error and the error message |
|
|