Here you can find the source of printExceptionInfo(Exception e)
public static void printExceptionInfo(Exception e)
//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 }