Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/DatabaseException.php \Drupal\Core\Database\DatabaseException
  2. 9 core/lib/Drupal/Core/Database/DatabaseException.php \Drupal\Core\Database\DatabaseException

Interface for a database exception.

Database drivers should catch lower-level database client exceptions and throw exceptions that implement this interface to allow database abstraction in Drupal.

Hierarchy

  • interface \Drupal\Core\Database\DatabaseException extends \Drupal\Core\Database\Throwable

Expanded class hierarchy of DatabaseException

All classes that implement DatabaseException

18 files declare their use of DatabaseException
Connection.php in core/modules/mysql/src/Driver/Database/mysql/Connection.php
DatabaseCacheTagsChecksum.php in core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php
DatabaseLockBackend.php in core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
DatabaseQueue.php in core/lib/Drupal/Core/Queue/DatabaseQueue.php
DatabaseStorage.php in core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php

... See full list

File

core/lib/Drupal/Core/Database/DatabaseException.php, line 13

Namespace

Drupal\Core\Database
View source
interface DatabaseException extends \Throwable {

}

Members