public class NonFatalBuildException
extends org.apache.tools.ant.BuildException
This exception is an extension of BuildException
used to indicate a handled error as occurred.
It is thrown during the execution of ant tasks to signify an error has occurred, but that the error shouldn’t cause the remainder of the ant task to fail.
The RhinoManagementAntTask
class will catch or re-throw NonFatalBuildException
depending on the failOnError
variable.
If set, the NonFatalBuildException
will be re-thrown as a BuildException
. Otherwise it will be caught and an error message displayed.
Constructor and Description |
---|
NonFatalBuildException(String message) |
NonFatalBuildException(String message,
Throwable cause) |
getException, getLocation, setLocation, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace