src/aria/core/log/AjaxAppender.js
function (e) {
            var str = "";

            if (typeof e == 'undefined' || e == null) {
                return str;
            }

            str = "\nException";
            str += "\n" + '---------------------------------------------------';
            if (e.fileName)
                str += '\nFile: ' + e.fileName;
            if (e.lineNumber)
                str += '\nLine: ' + e.lineNumber;
            if (e.message)
                str += '\nMessage: ' + e.message;
            if (e.name)
                str += '\nError: ' + e.name;
            if (e.stack)
                str += '\nStack:' + "\n" + e.stack.substring(0, 200) + " [...] Truncated stacktrace.";
            str += "\n" + '---------------------------------------------------' + "\n";

            return str;
        }
function (e) {
            var str = "";

            if (typeof e == 'undefined' || e == null) {
                return str;
            }

            str = "\nException";
            str += "\n" + '---------------------------------------------------';
            if (e.fileName)
                str += '\nFile: ' + e.fileName;
            if (e.lineNumber)
                str += '\nLine: ' + e.lineNumber;
            if (e.message)
                str += '\nMessage: ' + e.message;
            if (e.name)
                str += '\nError: ' + e.name;
            if (e.stack)
                str += '\nStack:' + "\n" + e.stack.substring(0, 200) + " [...] Truncated stacktrace.";
            str += "\n" + '---------------------------------------------------' + "\n";

            return str;
        }
function ( e ) { var str = "" ; if ( typeof e == 'undefined' || e == null ) { return str ; } str = "\nException" ; str += "\n" + '---------------------------------------------------' ; if ( e . fileName ) str += '\nFile: ' + e . fileName ; if ( e . lineNumber ) str += '\nLine: ' + e . lineNumber ; if ( e . message ) str += '\nMessage: ' + e . message ; if ( e . name ) str += '\nError: ' + e . name ; if ( e . stack ) str += '\nStack:' + "\n" + e . stack . substring ( 0 , 200 ) + " [...] Truncated stacktrace." ; str += "\n" + '---------------------------------------------------' + "\n" ; return str ; }
Format an exception object
@param {Object} e The exception to format
@return {String} The message ready to be shown
@private
Format an exception object