ExceptionHandler.php

Same filename in this branch
  1. 9 core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php
  2. 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/ExceptionHandler.php
  3. 9 core/lib/Drupal/Core/Database/ExceptionHandler.php
Same filename in other branches
  1. 10 core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php
  2. 10 core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/ExceptionHandler.php
  3. 10 core/lib/Drupal/Core/Database/Driver/mysql/ExceptionHandler.php
  4. 10 core/lib/Drupal/Core/Database/ExceptionHandler.php
  5. 11.x core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php
  6. 11.x core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/ExceptionHandler.php
  7. 11.x core/lib/Drupal/Core/Database/ExceptionHandler.php

Namespace

Drupal\Core\Database\Driver\mysql

File

core/lib/Drupal/Core/Database/Driver/mysql/ExceptionHandler.php

View source
<?php

namespace Drupal\Core\Database\Driver\mysql;

use Drupal\mysql\Driver\Database\mysql\ExceptionHandler as MysqlExceptionHandler;
@trigger_error('\\Drupal\\Core\\Database\\Driver\\mysql\\ExceptionHandler is 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 https://www.drupal.org/node/3129492', E_USER_DEPRECATED);

/**
 * MySql database exception handler class.
 *
 * @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 https://www.drupal.org/node/3129492
 */
class ExceptionHandler extends MysqlExceptionHandler {

}

Classes

Title Deprecated Summary
ExceptionHandler

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

MySql database exception handler class.

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