Here you can find the source of printException(Exception e)
public static void printException(Exception e)
//package com.java2s; //License from project: Open Source License public class Main { public static void printException(Exception e) { System.out.println("Exception caught! Exiting .."); System.out.println("error message: " + e.getMessage()); e.printStackTrace();//from w ww . j a v a 2 s. c o m } }