class DatabaseNotFoundException

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/DatabaseNotFoundException.php \Drupal\Core\Database\DatabaseNotFoundException
  2. 8.9.x core/lib/Drupal/Core/Database/DatabaseNotFoundException.php \Drupal\Core\Database\DatabaseNotFoundException
  3. 10 core/lib/Drupal/Core/Database/DatabaseNotFoundException.php \Drupal\Core\Database\DatabaseNotFoundException

Exception thrown if specified database is not found.

Hierarchy

Expanded class hierarchy of DatabaseNotFoundException

9 files declare their use of DatabaseNotFoundException
Connection.php in core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
Connection.php in core/modules/mysql/src/Driver/Database/mysql/Connection.php
Connection.php in core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
InstallerRedirectTrait.php in core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php
InstallerRedirectTraitTest.php in core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php

... See full list

File

core/lib/Drupal/Core/Database/DatabaseNotFoundException.php, line 8

Namespace

Drupal\Core\Database
View source
class DatabaseNotFoundException extends \RuntimeException implements DatabaseException {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.