com.mentata.sg8
Class ExcuseTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.mentata.sg8.ExcuseTag
- All Implemented Interfaces:
- JspTag, SimpleTag
- public class ExcuseTag
- extends SimpleTagSupport
A tag handler that generates explanatory messages for thrown exceptions.
This tag handler is used to produce error messages. It has a single action attribute for the exception thrown. The gateway error page uses the tag to add the messages at the top of the output HTML.
- Since:
- 0.7
- Author:
- Jon Roberts
|
Method Summary |
void |
doTag()
Writes an explanation of the failure derived from the configured exception. |
void |
setException(Throwable exception)
Defines an exception parameter for the tag context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExcuseTag
public ExcuseTag()
setException
public void setException(Throwable exception)
- Defines an exception parameter for the tag context.
- Parameters:
exception - an exception to explain
doTag
public void doTag()
throws IOException
- Writes an explanation of the failure derived from the configured exception.
- Throws:
IOException - if there was an error writing to the output stream