JsonLogRecordClientUtil
instead.@Deprecated
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)
Deprecated.
Visible for testing.
|
static void |
installUncaughtExceptionHandler(java.lang.String url)
Deprecated.
Installs an
GWT.UncaughtExceptionHandler that will automatically invoke
report(String, Throwable) . |
static boolean |
report(java.lang.String url,
java.lang.Throwable t)
Deprecated.
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 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 reporttrue
if the request was successfully initiatedSymbolMapsLinker
static java.lang.String buildPayload(java.lang.Throwable t)