src/js/misc.js
function dumpError(e) {
    if (typeof console !== "undefined" && typeof console.log !== "undefined") {
        var msg = "zebkit.err [";
        if (typeof Date !== 'undefined') {
            var date = new Date();
            msg = msg + date.getDate()   + "/" +
                  (date.getMonth() + 1) + "/" +
                  date.getFullYear() + " " +
                  date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
        }
        if (e === null || e === undefined) {
            console.log("Unknown error");
        } else {
            console.log(msg + " : " + e);
            console.log((e.stack ? e.stack : e));
        }
    }
}
function dumpError(e) {
    if (typeof console !== "undefined" && typeof console.log !== "undefined") {
        var msg = "zebkit.err [";
        if (typeof Date !== 'undefined') {
            var date = new Date();
            msg = msg + date.getDate()   + "/" +
                  (date.getMonth() + 1) + "/" +
                  date.getFullYear() + " " +
                  date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
        }
        if (e === null || e === undefined) {
            console.log("Unknown error");
        } else {
            console.log(msg + " : " + e);
            console.log((e.stack ? e.stack : e));
        }
    }
}
function dumpError ( e ) { if ( typeof console !== "undefined" && typeof console . log !== "undefined" ) { var msg = "zebkit.err [" ; if ( typeof Date !== 'undefined' ) { var date = new Date ( ) ; msg = msg + date . getDate ( ) + "/" + ( date . getMonth ( ) + 1 ) + "/" + date . getFullYear ( ) + " " + date . getHours ( ) + ":" + date . getMinutes ( ) + ":" + date . getSeconds ( ) ; } if ( e === null || e === undefined ) { console . log ( "Unknown error" ) ; } else { console . log ( msg + " : " + e ) ; console . log ( ( e . stack ? e . stack : e ) ) ; } } }
Dump the given error to output.
@param  {Exception | Object} e an error.
@method dumpError
@for  zebkit
Dump the given error to output .