Java Stacktrace Print PrintStackTrace(PrintStream out)

Here you can find the source of PrintStackTrace(PrintStream out)

Description

Print Stack Trace

License

Open Source License

Declaration

public static void PrintStackTrace(PrintStream out) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static void PrintStackTrace(PrintStream out) {
        try {/*from w  w  w .ja va  2s.com*/
            throw new Exception("Stack Trace:");
        } catch (Exception e) {
            e.printStackTrace(out);
        }
    }

    public static void PrintStackTrace() {
        PrintStackTrace(System.out);
    }
}

Related

  1. printStackTrace(Exception exception)
  2. printStackTrace(final Exception exception)
  3. printStackTrace(final StackTraceElement[] stack)
  4. printStackTrace(IOException ioe)
  5. printStackTrace(PrintStream out)
  6. printStackTrace(PrintStream out)
  7. printStackTrace(PrintStream out, StackTraceElement[] stackTrace)
  8. printStackTrace(PrintStream printStream, Thread thread, Throwable throwable)
  9. printStackTrace(PrintStream ps)