Example #1
1
    public static void die(String msg, Exception e) {
        System.err.println(msg);

        if (e != null) {
            System.err.println("Exception: " + e + "\n");
        }

        Thread.dumpStack();
        System.exit(2);
    }
Example #2
0
 static void fail() {
   failed++;
   Thread.dumpStack();
 }