eliminate printStackTrace() in example
authorKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 23 Feb 2019 00:52:22 +0000 (18:52 -0600)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 23 Feb 2019 00:52:22 +0000 (18:52 -0600)
README.md

index 2165e4f24d31d509ffbae960340a9bc0c905a088..2a62f1c1eb6531b151b60b6aec531883b5e10593 100644 (file)
--- 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();
     }
 }
 ```