コード例 #1
0
 private void doExecute(Runnable r) {
   try {
     r.run();
   } catch (JavaScriptException jse) {
     if (jse.isThrownSet()) {
       LOG.severe("Caught JavaScriptException, wrapped error is: " + jse.getThrown());
     }
     ThrowableHandlers.handle(jse);
   } catch (Throwable t) {
     ThrowableHandlers.handle(t);
   }
 }
コード例 #2
0
 private void executeTask(Runnable r) {
   myExecuting = true;
   try {
     doExecuteTask(r);
   } catch (Throwable t) {
     ThrowableHandlers.handle(t);
   } finally {
     myExecuting = false;
   }
 }