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
D7TaxonomyTermDeriver.php in core/modules/taxonomy/src/Plugin/migrate/D7TaxonomyTermDeriver.php
DatabaseExceptionWrapperTest.php in core/tests/Drupal/KernelTests/Core/Database/DatabaseExceptionWrapperTest.php
DatabaseExceptionWrapperTest.php in core/modules/mysql/tests/src/Kernel/mysql/DatabaseExceptionWrapperTest.php
DeleteTruncateTest.php in core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php
Error.php in core/lib/Drupal/Core/Utility/Error.php
ExceptionHandler.php in core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php
ExtensionList.php in core/lib/Drupal/Core/Extension/ExtensionList.php
Insert.php in core/modules/sqlite/src/Driver/Database/sqlite/Insert.php
Insert.php in core/modules/pgsql/src/Driver/Database/pgsql/Insert.php
install.core.inc in core/includes/install.core.inc
API functions for installing Drupal.
InstallerRedirectTraitTest.php in core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php
migrate_drupal.module in core/modules/migrate_drupal/migrate_drupal.module
Provides migration from other Drupal sites.
MigrationConfigurationTrait.php in core/modules/migrate_drupal/src/MigrationConfigurationTrait.php
MigrationConfigurationTraitTest.php in core/modules/migrate_drupal/tests/src/Unit/MigrationConfigurationTraitTest.php
SelectTest.php in core/tests/Drupal/KernelTests/Core/Database/SelectTest.php
Sql.php in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Sql.php in core/modules/views/src/Plugin/views/query/Sql.php
SqlContentEntityStorage.php in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
SqlTest.php in core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlTest.php
UpdateTest.php in core/tests/Drupal/KernelTests/Core/Database/UpdateTest.php
UpsertTest.php in core/tests/Drupal/KernelTests/Core/Database/UpsertTest.php
UserCreationTrait.php in core/modules/user/tests/src/Traits/UserCreationTrait.php
ViewsSqlExceptionTest.php in core/modules/views/tests/src/Kernel/Plugin/ViewsSqlExceptionTest.php

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