Java Stacktrace Print printStackTrace()

Here you can find the source of printStackTrace()

Description

Prints the stack trace of the current thread to the current debugging output stream.

License

Open Source License

Declaration

public static synchronized void printStackTrace() 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  w w  w.j  a  v  a  2  s  .c o  m
     * <p> Prints the stack trace of the current thread to the current
     * debugging output stream. </p>
     *
     * @concurrency GUARDED
     */
    public static synchronized void printStackTrace() {
        final Throwable throwable = new Throwable();
        throwable.printStackTrace();
    }
}

Related

  1. printStackTrace()
  2. printStackTrace()
  3. printStackTrace()
  4. printStackTrace()
  5. printStackTrace()
  6. printStackTrace()
  7. printStackTrace()
  8. printStackTrace()
  9. printStackTrace()