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 $
Method Summary |
String |
execute()
Execute the command and return the target to forward to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
thrown
protected Throwable thrown
ExceptionFrontCommand
public ExceptionFrontCommand(Throwable thrown)
- Constructor which takes the exception.
- Parameters:
thrown
- The exception to report.
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.
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.