com.bristle.javalib.jsp
Class Thrower

java.lang.Object
  extended by 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$


Constructor Summary
Thrower()
           
 
Method Summary
static void throwit(Throwable throwable)
          Throw the specified Throwable, without the compiler knowing in advance that it will certainly be thrown.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thrower

public Thrower()
Method Detail

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