class UpdateException

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Utility/UpdateException.php \Drupal\Core\Utility\UpdateException
  2. 10 core/lib/Drupal/Core/Utility/UpdateException.php \Drupal\Core\Utility\UpdateException
  3. 11.x core/lib/Drupal/Core/Utility/UpdateException.php \Drupal\Core\Utility\UpdateException

Exception class used to throw error if a module update fails.

Hierarchy

  • class \Drupal\Core\Utility\UpdateException extends \Drupal\Core\Utility\Exception

Expanded class hierarchy of UpdateException

2 files declare their use of UpdateException
module.api.php in core/lib/Drupal/Core/Extension/module.api.php
Hooks related to module and update systems.
update_test_failing.install in core/modules/system/tests/modules/update_test_failing/update_test_failing.install
Contains a failing update hook for testing the update system.

File

core/lib/Drupal/Core/Utility/UpdateException.php, line 8

Namespace

Drupal\Core\Utility
View source
class UpdateException extends \Exception {

}

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