You are here

class DatabaseExceptionWrapper in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/DatabaseExceptionWrapper.php \Drupal\Core\Database\DatabaseExceptionWrapper
  2. 10 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 PDOException.

Hierarchy

Expanded class hierarchy of DatabaseExceptionWrapper

19 files declare their use of DatabaseExceptionWrapper
Connection.php in core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
ConnectionTest.php in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
D6NodeDeriver.php in core/modules/node/src/Plugin/migrate/D6NodeDeriver.php
D7NodeDeriver.php in core/modules/node/src/Plugin/migrate/D7NodeDeriver.php
D7TaxonomyTermDeriver.php in core/modules/taxonomy/src/Plugin/migrate/D7TaxonomyTermDeriver.php

... See full list

1 string reference to 'DatabaseExceptionWrapper'
ErrorHandlerTest::testExceptionHandler in core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php
Test the exception handler.

File

core/lib/Drupal/Core/Database/DatabaseExceptionWrapper.php, line 10

Namespace

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

}

Members