function error(message) {
        throw {
            code: "D3137",
            stack: (new Error()).stack,
            message: message || "$error() function evaluated"
        };
    }
@param {string} [message] - the message to attach to the error
@throws custom error with code 'D3137'