com.bristle.javalib.jsp
Class Thrower
java.lang.Object
com.bristle.javalib.jsp.Thrower
public class Thrower
- extends Object
This class exists as a way to throw a Throwable from a JSP page, without
getting the JSP compile-time error:
org.apache.jasper.JasperException: Unable to compile class for JSP
...
Generated servlet error:
... unreachable statement
Usage:
- The typical scenario for using this class from a JSP page is:
<% Thrower.throwit(new MyException("text")); %>
Assumptions:
Effects:
- None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
$Log$
|
Method Summary |
static void |
throwit(Throwable throwable)
Throw the specified Throwable, without the compiler knowing in advance
that it will certainly be thrown. |
Thrower
public Thrower()
throwit
public static void throwit(Throwable throwable)
throws Throwable
- Throw the specified Throwable, without the compiler knowing in advance
that it will certainly be thrown.
- Parameters:
throwable - Throwable to be thrown
- Throws:
Throwable