X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=inline;f=src%2Forg%2Fxwt%2FScheduler.java;h=1f57fe7c9c8976240c1874be5ddb07bad7c22cdb;hb=a060cc5025b58e8d3e319aefa6ae44fe7c6182ad;hp=79fba3c04539707819c3dec767882ebe5570bf88;hpb=67eeff476179a91ae930ea89cbecde22132ca532;p=org.ibex.core.git diff --git a/src/org/xwt/Scheduler.java b/src/org/xwt/Scheduler.java index 79fba3c..1f57fe7 100644 --- a/src/org/xwt/Scheduler.java +++ b/src/org/xwt/Scheduler.java @@ -11,7 +11,7 @@ public class Scheduler { // Public API Exposed to org.xwt ///////////////////////////////////////////////// private static Scheduler singleton; - public static abstract class Task { public abstract void perform(); } + public static abstract class Task { public abstract void perform() throws Exception; } public static void add(Task t) { singleton.runnable.append(t); } public static void init() { if (singleton != null) return; @@ -40,8 +40,9 @@ public class Scheduler { t.perform(); // FEATURE: be smarter about this Surface.renderAll(); + } catch (JSExn e) { + Log.log(Scheduler.class, e.toString()); } catch (Exception e) { - Log.log(Scheduler.class, "Task threw an exception: " + e); Log.log(Scheduler.class, e); } }