class DatabaseExceptionWrapper
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/DatabaseExceptionWrapper.php \Drupal\Core\Database\DatabaseExceptionWrapper
- 10 core/lib/Drupal/Core/Database/DatabaseExceptionWrapper.php \Drupal\Core\Database\DatabaseExceptionWrapper
- 11.x core/lib/Drupal/Core/Database/DatabaseExceptionWrapper.php \Drupal\Core\Database\DatabaseExceptionWrapper
This wrapper class serves only to provide additional debug information.
This class will always wrap a client connection exception, for example \PDOException or \mysqli_sql_exception.
Hierarchy
- class \Drupal\Core\Database\DatabaseExceptionWrapper extends \Drupal\Core\Database\RuntimeException implements \Drupal\Core\Database\DatabaseException
Expanded class hierarchy of DatabaseExceptionWrapper
28 files declare their use of DatabaseExceptionWrapper
- Connection.php in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Connection.php in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Connection.php - ConnectionTest.php in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ ConnectionTest.php - D6NodeDeriver.php in core/
modules/ node/ src/ Plugin/ migrate/ D6NodeDeriver.php - D7NodeDeriver.php in core/
modules/ node/ src/ Plugin/ migrate/ D7NodeDeriver.php
1 string reference to 'DatabaseExceptionWrapper'
- ErrorHandlerTest::testExceptionHandler in core/
modules/ system/ tests/ src/ Functional/ System/ ErrorHandlerTest.php - Tests the exception handler.
File
-
core/
lib/ Drupal/ Core/ Database/ DatabaseExceptionWrapper.php, line 11
Namespace
Drupal\Core\DatabaseView source
class DatabaseExceptionWrapper extends \RuntimeException implements DatabaseException {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.