// 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;
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);
}
}