package com.java2nb.common.utils; public class ExceptionUtils { public static String getExceptionAllinformation(Exception ex) { String sOut = ""; StackTraceElement[] trace = ex.getStackTrace(); for (StackTraceElement s : trace) { sOut += "\tat " + s + "\r\n"; } return sOut; } }