function checkCatchAll() {
  const err = storedErrors.shift();
  googArray.clear(storedErrors);

  if (err) {
    throw err;
  }
}
Checks storedErrors for unhandled errors. If found, the error is rethrown.