|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tif.jacob.core.exception.ExceptionHandler
public final class ExceptionHandler
Exception handler class which should be used to report caught throwables in a well-defined way.
| Field Summary | |
|---|---|
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
| Constructor Summary | |
|---|---|
ExceptionHandler()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getExtendedStackTrace(java.lang.Throwable th)
Creates an extended stack trace out of the given throwable. |
static void |
handle(IClientContext context,
java.lang.Throwable th)
Reports the caught throwable in the internal database and shows the current user an error dialog. |
static java.lang.String |
handle(java.lang.Throwable th)
Reports the caught throwable in the internal database. |
static void |
handleNoReport(IClientContext context,
java.lang.Throwable th)
Shows the current user an error dialog. |
static void |
handleSmart(IClientContext context,
java.lang.Throwable th)
Handles the caught throwable in a smart way, i.e. depending on the type of the throwable an error is reported or an information message is shown to the current user. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.lang.String RCS_ID
public static final transient java.lang.String RCS_REV
| Constructor Detail |
|---|
public ExceptionHandler()
| Method Detail |
|---|
public static void handle(IClientContext context,
java.lang.Throwable th)
context - the current session contextth - The throwable to reported
public static void handleNoReport(IClientContext context,
java.lang.Throwable th)
context - the current session contextth - The throwable to reported
public static void handleSmart(IClientContext context,
java.lang.Throwable th)
context - the current session contextth - The throwable to reportedpublic static java.lang.String handle(java.lang.Throwable th)
th - The throwable to reportedpublic static java.lang.String getExtendedStackTrace(java.lang.Throwable th)
Example extended stack trace:
at de.tif.jacob.util.FastStringWriter.write(FastStringWriter.java:225) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.LongText.calculateHTML(LongText.java:120) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.GuiHtmlElement.calculateHTML(GuiHtmlElement.java:288) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.Group.calculateHTML(Group.java:172) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.GuiHtmlElement.calculateHTML(GuiHtmlElement.java:288) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.Form.calculateHTML(Form.java:233) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.Domain.calculateHTML(Domain.java:213) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at de.tif.jacob.screen.html.Application.calculateHTML(Application.java:208) ($Id: ExceptionHandler.java,v 1.1 2007/01/19 09:50:40 freegroup Exp $) at org.apache.jsp.ie_005fcontent_jsp._jspService(ie_005fcontent_jsp.java:409) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
th - the throwable to create an extended stack trace of
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||