public final class ResourceStore extends JavaScriptObject {
// Called from JSNI code.
@SuppressWarnings("unused")
private static void fireCapture(ResourceStoreUrlCaptureHandler handler,
ResourceStoreUrlCaptureHandler.ResourceStoreUrlCaptureEvent event) {
UncaughtExceptionHandler ueh = GWT.getUncaughtExceptionHandler();
if (ueh != null) {
try {
handler.onCapture(event);
} catch (Throwable e) {
ueh.onUncaughtException(e);
}
} else {
handler.onCapture(event);
}
}