INNER CODE UNIT · JavaScript

buildMessage

gnh1201/welsonjs · app.js:320

    function buildMessage(name, sev, msg, chain) {
        var s = name + " [" + sev + "]";
        if (msg) s += ": " + msg;
        if (chain) s += "\r\n" + chain;
        return s;
    }

    this.name = "TraceException";
    this.severity = normSeverity(severity);
    this.message = message || "";
    this.description = this.message; // IE friendly
    this.callee = callee || null;

    this.callers = callersOf(this.callee);
    this.callChain = this.callers.length ? this.callers.join("\r\n  <- ") : "";

    this.fullMessage = buildMessage(this.name, this.severity, this.message, this.callChain);
    this.toString = function () {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…