eliminate printStackTrace() in example
[fanfix.git] / 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();
     }
 }
 ```