function throwAnErrorWith(
    script, line, message, stack = undefined, cause = undefined) {
  throw createError(script, line, message, stack, cause);
}
@param {*} script
@param {*} line
@param {*} message
@param {*=} stack
@param {*=} cause