|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.HttpThrowableReporter
public final class HttpThrowableReporter
This is a utility class which can report Throwables to the server via a JSON-formatted payload.
Method Summary | |
---|---|
static void |
installUncaughtExceptionHandler(java.lang.String url)
Installs an GWT.UncaughtExceptionHandler that will automatically invoke
report(String, Throwable) . |
static boolean |
report(java.lang.String url,
java.lang.Throwable t)
Report a Throwable to the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void installUncaughtExceptionHandler(java.lang.String url)
GWT.UncaughtExceptionHandler
that will automatically invoke
report(String, Throwable)
.
url
- A URL that is suitable for use with XMLHttpRequest
public static boolean report(java.lang.String url, java.lang.Throwable t)
POST
request with a JSON-formatted payload. The payload will
consist of a single JSON object with the following keys:
GWT.getPermutationStrongName()
Throwable.getMessage()
StackTraceElement.getMethodName()
.
url
- A URL that is suitable for use with XMLHttpRequest
t
- The Throwable to report
true
if the request was successfully initiatedSymbolMapsLinker
|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |