interface DatabaseException

Interface for a database exception.

All Database exceptions should implement this interface so that they can be 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.

Hierarchy

Expanded class hierarchy of DatabaseException

All classes that implement DatabaseException

4 files declare their use of DatabaseException
Connection.php in drupal/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
Definition of Drupal\Core\Database\Driver\mysql\Connection
FieldsOverlapException.php in drupal/core/lib/Drupal/Core/Database/Query/FieldsOverlapException.php
Definition of Drupal\Core\Database\Query\FieldsOverlapExceptoin
InvalidMergeQueryException.php in drupal/core/lib/Drupal/Core/Database/Query/InvalidMergeQueryException.php
Definition of Drupal\Core\Database\Query\InvalidMergeQueryException
NoFieldsException.php in drupal/core/lib/Drupal/Core/Database/Query/NoFieldsException.php
Definition of Drupal\Core\Database\Query\NoFieldsException

File

drupal/core/lib/Drupal/Core/Database/DatabaseException.php, line 18
Definition of Drupal\Core\Database\DatabaseException

Namespace

Drupal\Core\Database
View source
interface DatabaseException {

}

Members