class UpdaterException

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Updater/UpdaterException.php \Drupal\Core\Updater\UpdaterException
  2. 9 core/lib/Drupal/Core/Updater/UpdaterException.php \Drupal\Core\Updater\UpdaterException
  3. 8.9.x core/lib/Drupal/Core/Updater/UpdaterException.php \Drupal\Core\Updater\UpdaterException
  4. 7.x includes/updater.inc \UpdaterException

Defines an Exception class for Drupal\Core\Updater\Updater class hierarchy.

This is identical to the base Exception class, we just give it a more specific name so that call sites that want to tell the difference can specifically catch these exceptions and treat them differently.

Hierarchy

  • class \Drupal\Core\Updater\UpdaterException extends \Drupal\Core\Updater\Exception

Expanded class hierarchy of UpdaterException

Deprecated

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

See also

https://www.drupal.org/node/3512364

1 file declares its use of UpdaterException
update.authorize.inc in core/modules/update/update.authorize.inc

File

core/lib/Drupal/Core/Updater/UpdaterException.php, line 17

Namespace

Drupal\Core\Updater
View source
class UpdaterException extends \Exception {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.