Java Exception Print printExceptionInfo(Exception e)

Here you can find the source of printExceptionInfo(Exception e)

Description

print Exception Info

License

Open Source License

Declaration

public static void printExceptionInfo(Exception e) 

Method Source Code

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

public class Main {
    public static void printExceptionInfo(Exception e) {
        System.out.println(e.getClass().getName() + " Error: ");
        System.out.println(e.getMessage() + "\n" + e.getStackTrace());
    }// w  ww . j  a  va  2s .com
}

Related

  1. printException(Exception e, String message)
  2. printException(String excption)
  3. printException(String prefix, Exception e)
  4. PrintException(StringBuilder Str, boolean HTML, Throwable T, boolean PrintCauseToo)
  5. printException(Throwable e, StackTraceElement[] trace)
  6. printExceptionMessage(Throwable ex)
  7. PrintExceptionMessages(StringBuilder Str, boolean HTML, Throwable T, boolean PrintCauseToo)
  8. printExceptionWithStackTrace(Throwable t)