com.mentata.sg8
Class TraceTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.mentata.sg8.TraceTag
- All Implemented Interfaces:
- JspTag, SimpleTag
- public class TraceTag
- extends SimpleTagSupport
A tag handler that generates a stack trace for thrown exceptions.
This tag handler is used to produce a stack trace for an error. It has a single action attribute for the exception thrown. The gateway error page uses the tag to add the stack trace at the tail of the output HTML for any non-SG8 exception.
- Since:
- 0.7
- Author:
- Jon Roberts
|
Method Summary |
void |
doTag()
Writes the stack trace for 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 |
TraceTag
public TraceTag()
setException
public void setException(Throwable exception)
- Defines an exception parameter for the tag context.
- Parameters:
exception - an exception to trace
doTag
public void doTag()
throws IOException
- Writes the stack trace for the configured exception.
- Throws:
IOException - if there was an error writing to the output stream