Arch4J 1.1

org.arch4j.webpresentation
Class ExceptionFrontCommand

java.lang.Object
  |
  +--org.arch4j.webpresentation.FrontCommand
        |
        +--org.arch4j.webpresentation.ExceptionFrontCommand

public class ExceptionFrontCommand
extends FrontCommand

This class is a special case FrontCommand. An exception occurred, so forward to a page to report this fact.

Version:
$Revision: 1.1 $
Author:
$Author: rgreinke $

Field Summary
protected  Throwable thrown
           
 
Fields inherited from class org.arch4j.webpresentation.FrontCommand
context, request, response
 
Constructor Summary
ExceptionFrontCommand(Throwable thrown)
          Constructor which takes the exception.
 
Method Summary
 String execute()
          Execute the command and return the target to forward to.
 
Methods inherited from class org.arch4j.webpresentation.FrontCommand
init, setHelperAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thrown

protected Throwable thrown
Constructor Detail

ExceptionFrontCommand

public ExceptionFrontCommand(Throwable thrown)
Constructor which takes the exception.

Parameters:
thrown - The exception to report.
Method Detail

execute

public String execute()
               throws javax.servlet.ServletException,
                      IOException
Execute the command and return the target to forward to. Forwards to the page named /exception.jsp.

Specified by:
execute in class FrontCommand
Returns:
A String containing a fully-qualified resource name, which will be forwarded to.
Throws:
javax.servlet.ServletException - If the request could not be handled.
IOException - If an input or output error is detected when the servlet handles the request.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.