From: Kevin Lamonte Date: Sat, 23 Feb 2019 00:52:22 +0000 (-0600) Subject: eliminate printStackTrace() in example X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=4ac6237dc39be3c76def4f5c18f79c15591e3c0b;p=fanfix-jexer.git eliminate printStackTrace() in example --- diff --git a/README.md b/README.md index 2165e4f..2a62f1c 100644 --- a/README.md +++ b/README.md @@ -93,13 +93,9 @@ class MyApplication extends TApplication { new MyWindow(this); } - public static void main(String [] args) { - try { - MyApplication app = new MyApplication(); - (new Thread(app)).start(); - } catch (Throwable t) { - t.printStackTrace(); - } + public static void main(String [] args) throws Exception { + MyApplication app = new MyApplication(); + (new Thread(app)).start(); } } ```