lib/exceptions.js
function throwError(name, message) {
    var error = new Error(message);
    error.name = name;

    error.stack = formaterrors.stackFilter(error.stack, ["exceptions.js"], false);

    throw error;
}
function throwError(name, message) {
    var error = new Error(message);
    error.name = name;

    error.stack = formaterrors.stackFilter(error.stack, ["exceptions.js"], false);

    throw error;
}
function throwError ( name , message ) { var error = new Error ( message ) ; error . name = name ; error . stack = formaterrors . stackFilter ( error . stack , [ "exceptions.js" ] , false ) ; throw error ; }
Throw an error. This method ensures that no exceptions.js lines are included in the stack trace of the thrown
error.

@private
@param {String} name the name of the Error to throw.
@param {String} message the message part of the error to throw.
Throw an error . This method ensures that no exceptions . js lines are included in the stack trace of the thrown error .