public final class HttpThrowableReporter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.String |
buildPayload(java.lang.Throwable t)
Visible for testing.
|
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.
|
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 XMLHttpRequestpublic 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 XMLHttpRequestt - The Throwable to reporttrue if the request was successfully initiatedSymbolMapsLinkerstatic java.lang.String buildPayload(java.lang.Throwable t)