JsonLogRecordClientUtil
instead.@Deprecated public final class HttpThrowableReporter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
installUncaughtExceptionHandler(String url)
Deprecated.
Installs an
GWT.UncaughtExceptionHandler that will automatically invoke
report(String, Throwable) . |
static boolean |
report(String url,
Throwable t)
Deprecated.
Report a Throwable to the server.
|
public static void installUncaughtExceptionHandler(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(String url, 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
Copyright © 2016. All rights reserved.