Here you can find the source of bitch(Throwable t)
Parameter | Description |
---|---|
t | the Throwable object containing the stack trace |
public static void bitch(Throwable t)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w . j a v a 2s.c om Print an error message with a cause, and the stack trace leading up to it<br> Usually called as <tt>Util.bitch (new Throwable ("message"))</tt><br> @param t the Throwable object containing the stack trace */ public static void bitch(Throwable t) { StackTraceElement[] st = t.getStackTrace(); System.err.println(st[0].getClassName() + "." + st[0].getMethodName() + " (), line " + st[0].getLineNumber() + ": " + t.getMessage()); for (int i = 1; i < st.length; i++) System.err.println(" from " + st[i].getClassName() + "." + st[i].getMethodName() + " (), line " + st[i].getLineNumber()); // TODO: open a dialog window displaying the message } }