handler/PrettyPageHandler.js
function PrettyPageHandler(theme, pageTitle, editor, sendResponse, additionalScripts) {

    PrettyPageHandler.super_.call(this);

    /**
     * @var {String}
     * @protected
     */
    this.__pageTitle = pageTitle || "Ouch! There was an error.";

    /**
     * @var {String}
     * @protected
     */
    this.__theme = theme || "blue";

    /**
     * A string identifier for a known IDE/text editor, or a closure
     * that resolves a string that can be used to open a given file
     * in an editor. If the string contains the special substrings
     * %file or %line, they will be replaced with the correct data.
     *
     * @example
     *  "txmt://open?url=%file&line=%line"
     *
     * @var {*} editor
     * @protected
     */
    this.__editor = editor;

    /**
     * Should Ouch push output directly to the client?
     * If this is false, output will be passed to the callback
     * provided to the handle method.
     * @type {boolean}
     * @protected
     */
    this.__sendResponse = sendResponse === undefined ? true : Boolean(sendResponse);

    /**
     * An Array of urls that represent additional javascript resources to include in the rendered template.
     *
     * @type {Array}
     * @protected
     */
    this.__additionalScripts = additionalScripts || [];

    /**
     * A list of known editor strings
     *
     * @var Object
     * @protected
     */
    this.__editors = {
        "sublime": "subl://open?url=file://%file&line=%line",
        "textmate": "txmt://open?url=file://%file&line=%line",
        "emacs": "emacs://open?url=file://%file&line=%line",
        "macvim": "mvim://open/?url=file://%file&line=%line"
    };
}
function PrettyPageHandler(theme, pageTitle, editor, sendResponse, additionalScripts) {

    PrettyPageHandler.super_.call(this);

    /**
     * @var {String}
     * @protected
     */
    this.__pageTitle = pageTitle || "Ouch! There was an error.";

    /**
     * @var {String}
     * @protected
     */
    this.__theme = theme || "blue";

    /**
     * A string identifier for a known IDE/text editor, or a closure
     * that resolves a string that can be used to open a given file
     * in an editor. If the string contains the special substrings
     * %file or %line, they will be replaced with the correct data.
     *
     * @example
     *  "txmt://open?url=%file&line=%line"
     *
     * @var {*} editor
     * @protected
     */
    this.__editor = editor;

    /**
     * Should Ouch push output directly to the client?
     * If this is false, output will be passed to the callback
     * provided to the handle method.
     * @type {boolean}
     * @protected
     */
    this.__sendResponse = sendResponse === undefined ? true : Boolean(sendResponse);

    /**
     * An Array of urls that represent additional javascript resources to include in the rendered template.
     *
     * @type {Array}
     * @protected
     */
    this.__additionalScripts = additionalScripts || [];

    /**
     * A list of known editor strings
     *
     * @var Object
     * @protected
     */
    this.__editors = {
        "sublime": "subl://open?url=file://%file&line=%line",
        "textmate": "txmt://open?url=file://%file&line=%line",
        "emacs": "emacs://open?url=file://%file&line=%line",
        "macvim": "mvim://open/?url=file://%file&line=%line"
    };
}
function PrettyPageHandler ( theme , pageTitle , editor , sendResponse , additionalScripts ) { PrettyPageHandler . super_ . call ( this ) ; /**
     * @var {String}
     * @protected
     */ this . __pageTitle = pageTitle || "Ouch! There was an error." ; /**
     * @var {String}
     * @protected
     */ this . __theme = theme || "blue" ; /**
     * A string identifier for a known IDE/text editor, or a closure
     * that resolves a string that can be used to open a given file
     * in an editor. If the string contains the special substrings
     * %file or %line, they will be replaced with the correct data.
     *
     * @example
     *  "txmt://open?url=%file&line=%line"
     *
     * @var {*} editor
     * @protected
     */ this . __editor = editor ; /**
     * Should Ouch push output directly to the client?
     * If this is false, output will be passed to the callback
     * provided to the handle method.
     * @type {boolean}
     * @protected
     */ this . __sendResponse = sendResponse === undefined ? true : Boolean ( sendResponse ) ; /**
     * An Array of urls that represent additional javascript resources to include in the rendered template.
     *
     * @type {Array}
     * @protected
     */ this . __additionalScripts = additionalScripts || [ ] ; /**
     * A list of known editor strings
     *
     * @var Object
     * @protected
     */ this . __editors = { "sublime" : "subl://open?url=file://%file&line=%line" , "textmate" : "txmt://open?url=file://%file&line=%line" , "emacs" : "emacs://open?url=file://%file&line=%line" , "macvim" : "mvim://open/?url=file://%file&line=%line" } ; }
Prettifies a javascript error stack.

@param theme
@param pageTitle
@param editor
@param sendResponse
@param [additionalScripts]
@class
Prettifies a javascript error stack .