W3cubDocs

/Drupal 8

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

File

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

Namespace

Drupal\Core\Database

Members

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!DatabaseException.php/interface/DatabaseException/8.1.x