class DatabaseAccessDeniedException

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

Exception thrown if access credentials fail.

Hierarchy

Expanded class hierarchy of DatabaseAccessDeniedException

2 files declare their use of DatabaseAccessDeniedException
Connection.php in core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
Connection.php in core/modules/mysql/src/Driver/Database/mysql/Connection.php
1 string reference to 'DatabaseAccessDeniedException'
UncaughtExceptionTest::testLostDatabaseConnection in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests the case when the database connection is gone.

File

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

Namespace

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

}

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