public static String buildStackTrace(StackTraceElement[] stackTraceElements) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < stackTraceElements.length; i++) {
            StackTraceElement stackTraceElement = stackTraceElements[i];
            builder.append("    at ");
            builder.append(stackTraceElement.getClassName());
            builder.append(".");
            builder.append(stackTraceElement.getMethodName());
            builder.append("(");
            builder.append(stackTraceElement.getFileName());
            builder.append(":");
            builder.append(stackTraceElement.getLineNumber());
            builder.append(")");
            builder.append(StringHelper.line());
        }
        return builder.toString();
    }
public static String buildStackTrace(StackTraceElement[] stackTraceElements) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < stackTraceElements.length; i++) {
            StackTraceElement stackTraceElement = stackTraceElements[i];
            builder.append("    at ");
            builder.append(stackTraceElement.getClassName());
            builder.append(".");
            builder.append(stackTraceElement.getMethodName());
            builder.append("(");
            builder.append(stackTraceElement.getFileName());
            builder.append(":");
            builder.append(stackTraceElement.getLineNumber());
            builder.append(")");
            builder.append(StringHelper.line());
        }
        return builder.toString();
    }
public static String buildStackTrace ( StackTraceElement [ ] stackTraceElements ) { StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < stackTraceElements . length ; i ++ ) { StackTraceElement stackTraceElement = stackTraceElements [ i ] ; builder . append ( "    at " ) ; builder . append ( stackTraceElement . getClassName ( ) ) ; builder . append ( "." ) ; builder . append ( stackTraceElement . getMethodName ( ) ) ; builder . append ( "(" ) ; builder . append ( stackTraceElement . getFileName ( ) ) ; builder . append ( ":" ) ; builder . append ( stackTraceElement . getLineNumber ( ) ) ; builder . append ( ")" ) ; builder . append ( StringHelper . line ( ) ) ; } return builder . toString ( ) ; }
组织堆栈信息，将堆栈数组拼接成字符串 <br>
2013-8-28 下午3:50:50

@param stackTraceElements
@return String
组织堆栈信息，将堆栈数组拼接成字符串 <br > 2013 - 8 - 28 下午3 : 50 : 50