function ExceptionHandler::handleExecutionException
Same name in this branch
- 11.x core/lib/Drupal/Core/Database/ExceptionHandler.php \Drupal\Core\Database\ExceptionHandler::handleExecutionException()
- 11.x core/modules/mysqli/src/Driver/Database/mysqli/ExceptionHandler.php \Drupal\mysqli\Driver\Database\mysqli\ExceptionHandler::handleExecutionException()
Same name and namespace in other branches
- 9 core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php \Drupal\mysql\Driver\Database\mysql\ExceptionHandler::handleExecutionException()
- 9 core/lib/Drupal/Core/Database/ExceptionHandler.php \Drupal\Core\Database\ExceptionHandler::handleExecutionException()
- 10 core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php \Drupal\mysql\Driver\Database\mysql\ExceptionHandler::handleExecutionException()
- 10 core/lib/Drupal/Core/Database/ExceptionHandler.php \Drupal\Core\Database\ExceptionHandler::handleExecutionException()
Handles exceptions thrown during execution of statement objects.
Parameters
\Exception $exception: The exception to be handled.
\Drupal\Core\Database\StatementInterface $statement: The statement object requested to be executed.
array $arguments: An array of arguments for the prepared statement.
array $options: An associative array of options to control how the database operation is run.
Overrides ExceptionHandler::handleExecutionException
1 method overrides ExceptionHandler::handleExecutionException()
- ExceptionHandler::handleExecutionException in core/
modules/ mysqli/ src/ Driver/ Database/ mysqli/ ExceptionHandler.php - Handles exceptions thrown during execution of statement objects.
File
-
core/
modules/ mysql/ src/ Driver/ Database/ mysql/ ExceptionHandler.php, line 22
Class
- ExceptionHandler
- MySql database exception handler class.
Namespace
Drupal\mysql\Driver\Database\mysqlCode
public function handleExecutionException(\Exception $exception, StatementInterface $statement, array $arguments = [], array $options = []) : void {
if (!$exception instanceof \PDOException) {
throw $exception;
}
$this->rethrowNormalizedException($exception, $exception->getCode(), $exception->errorInfo[1] ?? NULL, $statement->getQueryString(), $arguments);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.