diff --git a/core/lib/Drupal/Core/Config/DatabaseStorage.php b/core/lib/Drupal/Core/Config/DatabaseStorage.php index 7626bf50802c49a5a8ac3f2a64a7bb51892a27b9..c40e70ee224cc4704e550e0f0e4380cc51615b08 100644 --- a/core/lib/Drupal/Core/Config/DatabaseStorage.php +++ b/core/lib/Drupal/Core/Config/DatabaseStorage.php @@ -215,7 +215,7 @@ protected static function schemaDefinition() { /** * Implements Drupal\Core\Config\StorageInterface::delete(). * - * @throws PDOException + * @throws \PDOException * * @todo Ignore replica targets for data manipulation operations. */ @@ -232,7 +232,7 @@ public function delete($name) { /** * Implements Drupal\Core\Config\StorageInterface::rename(). * - * @throws PDOException + * @throws \PDOException */ public function rename($name, $new_name) { // @todo Remove the 'return' option in Drupal 11. @@ -255,7 +255,7 @@ public function encode($data) { /** * Implements Drupal\Core\Config\StorageInterface::decode(). * - * @throws ErrorException + * @throws \ErrorException * The unserialize() call will trigger E_NOTICE if the string cannot * be unserialized. */ diff --git a/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php b/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php index 18cea0fd1b26f33a861f3baf234e9a00281bfce4..d690b5a5994127b088d1cb98b4f711766c0cce46 100644 --- a/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php +++ b/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php @@ -146,7 +146,7 @@ public function themeExists($theme); * @return \Drupal\Core\Extension\Extension * An extension object. * - * @throws \Drupal\Core\Extension\Extension\UnknownExtensionException + * @throws \Drupal\Core\Extension\Exception\UnknownExtensionException * Thrown when the requested theme does not exist. */ public function getTheme($name); diff --git a/core/lib/Drupal/Core/Routing/FilterInterface.php b/core/lib/Drupal/Core/Routing/FilterInterface.php index ca40c9b4d7d3bce59a51bab025df971adcb985ee..5f70088677807a6334434fb9d922ae7db9ec3085 100644 --- a/core/lib/Drupal/Core/Routing/FilterInterface.php +++ b/core/lib/Drupal/Core/Routing/FilterInterface.php @@ -22,7 +22,7 @@ interface FilterInterface { * @return \Symfony\Component\Routing\RouteCollection * A non-empty RouteCollection of matched routes * - * @throws ResourceNotFoundException + * @throws \Symfony\Component\Routing\Exception\ResourceNotFoundException * If none of the routes in $collection matches $request. This is a * performance optimization to not continue the match process when a match * will no longer be possible. diff --git a/core/lib/Drupal/Core/Validation/TranslatorInterface.php b/core/lib/Drupal/Core/Validation/TranslatorInterface.php index e59e766ffdb6631809a3036cfb421df3ac3585f0..65df2a2babcd178bb37f15a497eef5aaf2320a49 100644 --- a/core/lib/Drupal/Core/Validation/TranslatorInterface.php +++ b/core/lib/Drupal/Core/Validation/TranslatorInterface.php @@ -29,7 +29,7 @@ interface TranslatorInterface { * @return string * The translated string. * - * @throws InvalidArgumentException + * @throws \InvalidArgumentException * If the locale contains invalid characters. */ public function trans($id, array $parameters = [], $domain = NULL, $locale = NULL); diff --git a/core/modules/language/src/Entity/ConfigurableLanguage.php b/core/modules/language/src/Entity/ConfigurableLanguage.php index 5dbdeda0eff1636db9a9279861d39d70fc4bad52..c8f246bf91c40e9a866f79c4e3e1bfdb39ad8fc4 100644 --- a/core/modules/language/src/Entity/ConfigurableLanguage.php +++ b/core/modules/language/src/Entity/ConfigurableLanguage.php @@ -166,7 +166,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) { /** * {@inheritdoc} * - * @throws \DeleteDefaultLanguageException + * @throws \Drupal\language\Exception\DeleteDefaultLanguageException * Exception thrown if we're trying to delete the default language entity. * This is not allowed as a site must have a default language. */ diff --git a/core/modules/locale/src/PoDatabaseReader.php b/core/modules/locale/src/PoDatabaseReader.php index 55c2b690ada80de43f1b9b441a2361120b7907cd..4ed76634676b679a4691210d8934fd60d5e2b5da 100644 --- a/core/modules/locale/src/PoDatabaseReader.php +++ b/core/modules/locale/src/PoDatabaseReader.php @@ -91,7 +91,7 @@ public function getHeader() { /** * Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). * - * @throws Exception + * @throws \Exception * Always, because you cannot set the PO header of a reader. */ public function setHeader(PoHeader $header) { diff --git a/core/modules/locale/src/PoDatabaseWriter.php b/core/modules/locale/src/PoDatabaseWriter.php index 6763a79e675cf4402e2c64e7509f02295c58e0a5..7e7340cf1070ffa81f198a0f8c56b9b68f6c15f5 100644 --- a/core/modules/locale/src/PoDatabaseWriter.php +++ b/core/modules/locale/src/PoDatabaseWriter.php @@ -154,7 +154,7 @@ public function getHeader() { * @param \Drupal\Component\Gettext\PoHeader $header * Header metadata. * - * @throws Exception + * @throws \Exception */ public function setHeader(PoHeader $header) { $this->header = $header; diff --git a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php index 34bf477264e45b15acaa1dbf73fe58c8cfe50218..c0d317ec467d474938c086e74f839ca4c10dd5e8 100644 --- a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php +++ b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php @@ -332,7 +332,7 @@ public function setMessage(MigrateMessageInterface $message) { /** * Create the map and message tables if they don't already exist. * - * @throws \Drupal\Core\Database\DatabaseException + * @throws \Drupal\Core\Database\DatabaseExceptionWrapper */ protected function ensureTables() { if (!$this->getDatabase()->schema()->tableExists($this->mapTableName)) {