private static void onRequestImpl(Listener listener, Message message) { UncaughtExceptionHandler ueh = GWT.getUncaughtExceptionHandler(); if (ueh != null) { try { listener.onRequest(message); } catch (Exception ex) { ueh.onUncaughtException(ex); } } else { listener.onRequest(message); } }
/** * Takes care of reporting exceptions to the console in hosted mode. * * @param listener the listener object to call back. * @param request the payload of the data that was sent with this request * @param sender the sender information for the extension that sent the request * @param sendResponse the function object that can be used to send a response to the sender */ private static void onRequestExternalImpl( Listener listener, JavaScriptObject request, Sender sender, SendResponse sendResponse) { UncaughtExceptionHandler ueh = GWT.getUncaughtExceptionHandler(); if (ueh != null) { try { listener.onRequestExternal(request, sender, sendResponse); } catch (Exception ex) { ueh.onUncaughtException(ex); } } else { listener.onRequestExternal(request, sender, sendResponse); } }
private void fireOnEventAndCatch(Component comp, UncaughtExceptionHandler handler) { try { onBeforeDestroy(comp); } catch (Throwable e) { handler.onUncaughtException(e); } }
private void fireOnEventAndCatch( Mask mask, Object eventObject, Object eOpts, UncaughtExceptionHandler handler) { try { onTap(mask, eventObject, eOpts); } catch (Throwable e) { handler.onUncaughtException(e); } }
private void fireOnEventAndCatch( Component component, boolean existingValue, boolean newValue, Object eOpts, UncaughtExceptionHandler handler) { try { onDisabledChange(component, existingValue, newValue, eOpts); } catch (Throwable e) { handler.onUncaughtException(e); } }
private void fireOnEventAndCatch( Container container, Object item, boolean rendered, Object eOpts, UncaughtExceptionHandler handler) { try { onRenderChange(container, item, rendered, eOpts); } catch (Throwable e) { handler.onUncaughtException(e); } }