throw exception if Server constructor fails

This commit is contained in:
Ben Fry
2014-07-30 21:37:12 -04:00
parent 2943469482
commit bff235dcb9
3 changed files with 20 additions and 14 deletions

View File

@@ -107,8 +107,9 @@ public class Server implements Runnable {
}
} catch (IOException e) {
e.printStackTrace();
//e.printStackTrace();
thread = null;
throw new RuntimeException(e);
//errorMessage("<init>", e);
}
}