Here you can find the source of printError(String message, Exception e, boolean pst)
public static void printError(String message, Exception e, boolean pst)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean ERROR_ENABLED = true; public static void printError(String message, Exception e, boolean pst) { if (ERROR_ENABLED) { if (e != null && e.getMessage() != null) { message = message + " : " + e.getMessage(); }//w w w . j a v a 2s .c o m System.err.println("[ERROR] " + message); if (e != null && pst) { e.printStackTrace(System.err); } } } }