public final class

HttpThrowableReporter

extends Object
java.lang.Object
   ↳ com.google.gwt.core.client.HttpThrowableReporter

Class Overview

This is a utility class which can report Throwables to the server via a JSON-formatted payload.

Summary

Public Methods
static void installUncaughtExceptionHandler(String url)
Installs an GWT.UncaughtExceptionHandler that will automatically invoke report(String, Throwable).
static boolean report(String url, Throwable t)
Report a Throwable to the server.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void installUncaughtExceptionHandler (String url)

Installs an GWT.UncaughtExceptionHandler that will automatically invoke report(String, Throwable).

Parameters
url A URL that is suitable for use with XMLHttpRequest

public static boolean report (String url, Throwable t)

Report a Throwable to the server. This method will sent an HTTP POST request with a JSON-formatted payload. The payload will consist of a single JSON object with the following keys:

strongName
The result of calling getPermutationStrongName()
message
The result of calling getMessage()
stackTrace
A list of the methods names in the Throwable's stack trace, derived from getMethodName().
The response from the server is ignored.

Parameters
url A URL that is suitable for use with XMLHttpRequest
t The Throwable to report
Returns
  • true if the request was successfully initiated
See Also
  • com.google.gwt.core.linker.SymbolMapsLinker