net.sf.antcontrib.logic

Class Throw


public class Throw
extends Exit

Extension of <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.

Method Summary

void
execute()
void
setRefid(Reference ref)
The reference that points to a BuildException.

Method Details

execute

public void execute()
            throws BuildException

setRefid

public void setRefid(Reference ref)
The reference that points to a BuildException.