diff --git a/core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php b/core/lib/Drupal/Core/Database/DatabaseException.php similarity index 61% copy from core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php copy to core/lib/Drupal/Core/Database/DatabaseException.php index 8954674..741bb23 100644 --- a/core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php +++ b/core/lib/Drupal/Core/Database/DatabaseException.php @@ -9,5 +9,10 @@ * caught collectively. Note that this applies only to Drupal-spawned * exceptions. PDOException will not implement this interface and module * developers should account for it separately. + * + * @deprecated in Drupal 8.2.x for removal before Drupal 9.0.0. Use + * Drupal\Core\Database\DatabaseExceptionInterface instead. */ -interface DatabaseExceptionInterface { } +// @codingStandardsIgnoreStart +interface DatabaseException {} +// @codingStandardsIgnoreEnd diff --git a/core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php b/core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php index 8954674..93190f6 100644 --- a/core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php +++ b/core/lib/Drupal/Core/Database/DatabaseExceptionInterface.php @@ -9,5 +9,10 @@ * caught collectively. Note that this applies only to Drupal-spawned * exceptions. PDOException will not implement this interface and module * developers should account for it separately. + * + * Note that this interface extends DatabaseException. This is for + * backwards-compatibility since DatabaseException is deprecated. + * DatabaseException will be removed at some point, and this interface will no + * longer extend it. */ -interface DatabaseExceptionInterface { } +interface DatabaseExceptionInterface extends DatabaseException {}