Java Bits Convert to bitch(Throwable t)

Here you can find the source of bitch(Throwable t)

Description

Print an error message with a cause, and the stack trace leading up to it
Usually called as Util.bitch (new Throwable ("message"))

License

Open Source License

Parameter

Parameter Description
t the Throwable object containing the stack trace

Declaration

public static void bitch(Throwable t) 

Method Source Code

//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
    }
}

Related

  1. bitarrayShiftAndFill(byte[] data, int length, int shift, byte first, byte last)
  2. bitArrayToByte(byte[] bytes)
  3. BitArrayToString(Boolean[] asciiBinary)
  4. bitboardToString(final long l)
  5. bitboardToString(long bitboard)
  6. bitFieldToIndexArray(long bitfield)
  7. bitFieldToString(boolean[] bits)
  8. bitfieldToString(String[] statenames, int value)
  9. bitFlagByteLength(final int nbits)