public static interface GWT.UncaughtExceptionHandler
This interface is used to catch exceptions at the "top level" just before
they escape to the browser. This is used in places where the browser calls
into user code such as event callbacks, timers, and RPC.
In Development Mode, the default handler prints a stack trace to the log
window. In Production Mode, the default handler is null and thus exceptions