class ExceptionHandler

MySql database exception handler class.

Hierarchy

Expanded class hierarchy of ExceptionHandler

Deprecated

in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module.

See also

https://www.drupal.org/node/3129492

1 file declares its use of ExceptionHandler
MysqlDriverLegacyTest.php in core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverLegacyTest.php
3 string references to 'ExceptionHandler'
Connection::exceptionHandler in core/lib/Drupal/Core/Database/Connection.php
Returns the database exceptions handler.
Connection::getDriverClass in core/lib/Drupal/Core/Database/Connection.php
Gets the driver-specific override class if any for the specified class.
ConnectionTest::providerGetDriverClass in core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
Data provider for testGetDriverClass().

File

core/lib/Drupal/Core/Database/Driver/mysql/ExceptionHandler.php, line 17

Namespace

Drupal\Core\Database\Driver\mysql
View source
class ExceptionHandler extends MysqlExceptionHandler {

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ExceptionHandler::handleExecutionException public function Handles exceptions thrown during execution of statement objects. Overrides ExceptionHandler::handleExecutionException
ExceptionHandler::handleStatementException public function Handles exceptions thrown during the preparation of statement objects.

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