avoid declararation that methods throws generic Exception
[org.ibex.core.git] / src / org / ibex / Main.java
index 2c6a7d3..74b4b3f 100644 (file)
@@ -42,7 +42,7 @@ public class Main {
         Runtime.getRuntime().exit(-1);
     }
 
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws UnknownHostException, JSExn {
         int startargs = 0;
         while (true) {
             if (startargs > args.length - 1) printUsage();
@@ -78,7 +78,7 @@ public class Main {
 
         scarImage =
             Picture.load((Stream)Main.builtin.get("org/ibex/builtin/scar.png"),
-                         new Scheduler.Task() { public void perform() throws Exception {
+                         new Scheduler.Task() { public void perform() throws JSExn, UnknownHostException {
                              ibex.resolveString(startupTemplate, false).call(new Box(), null, null, null, 1);
                          } });