Here you can find the source of exceptionMessage(Object... strings)
public static String exceptionMessage(Object... strings)
//package com.java2s; //License from project: Open Source License public class Main { public static String exceptionMessage(Object... strings) { StringBuilder msg = new StringBuilder(); msg.append(strings[0]).append(System.lineSeparator()); msg.append("Additional exception info:").append(System.lineSeparator()); for (int i = 1; i < strings.length; i++) { msg.append("\t").append(strings[i]).append(System.lineSeparator()); }//w w w . j ava2s . c o m msg.append("Stacktrace:"); return msg.toString(); } }