java.lang.Cloneablepublic class Throw
extends org.apache.tools.ant.taskdefs.Exit
<fail> that can throw an exception
that is a reference in the project.
This may be useful inside the <catch> block
of a <trycatch> task if you want to rethrow the
exception just caught.
| Constructor | Description |
|---|---|
Throw() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute() |
|
void |
setRefid(org.apache.tools.ant.types.Reference ref) |
The reference that points to a BuildException.
|
addText, createCondition, setIf, setIf, setMessage, setStatus, setUnless, setUnlessequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setRefid(org.apache.tools.ant.types.Reference ref)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.Exitorg.apache.tools.ant.BuildException