it.haefelinger.flaka
Class TryCatch.CatchBlock
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Sequential
it.haefelinger.flaka.TryCatch.CatchBlock
- All Implemented Interfaces:
- Cloneable, TaskContainer
- Enclosing class:
- TryCatch
public static final class TryCatch.CatchBlock
- extends Sequential
A helper class implementing a catch clause.
The catch clause is a regular task container. It allows further for the
specification of a type and a pattern to catch a particular exception.
- Author:
- wh81752
| Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
match
protected Pattern match
type
protected Pattern type
TryCatch.CatchBlock
public TryCatch.CatchBlock()
setType
public void setType(String type)
- Set the name of the Java class to be catched.
By default, only exceptions of type BuildException are caught.
setMatch
public void setMatch(String match)
- The pattern expession to use to select a particular exception.
loadClass
public Class loadClass(String s)
match
public boolean match(Throwable t)