Raise Helper

RAISE helper will be used to create and throw errors.

You might be interested in Errors and Exception Handling.

Raise Helper Function Definition

var RAISE = function (code,name,message) {
    message === undefined && ([name,message] = [message,name])
    var error = new Error(message);
    error.name = name
    SQLERRM = `${(SQLCODE = (error.code = code))}: ${message}`
    throw error;
};

Last updated