class IntegrityConstraintViolationException in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/IntegrityConstraintViolationException.php \Drupal\Core\Database\IntegrityConstraintViolationException
- 9 core/lib/Drupal/Core/Database/IntegrityConstraintViolationException.php \Drupal\Core\Database\IntegrityConstraintViolationException
Exception thrown if a query would violate an integrity constraint.
This exception is thrown e.g. when trying to insert a row that would violate a unique key constraint.
Hierarchy
- class \Drupal\Core\Database\IntegrityConstraintViolationException extends \Drupal\Core\Database\RuntimeException implements \Drupal\Core\Database\DatabaseException
Expanded class hierarchy of IntegrityConstraintViolationException
8 files declare their use of IntegrityConstraintViolationException
- DatabaseLockBackend.php in core/
lib/ Drupal/ Core/ Lock/ DatabaseLockBackend.php - EntityDefinitionUpdateTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - ExceptionHandler.php in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ ExceptionHandler.php - InsertTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Database/ InsertTest.php - InvalidDataTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Database/ InvalidDataTest.php
File
- core/
lib/ Drupal/ Core/ Database/ IntegrityConstraintViolationException.php, line 11
Namespace
Drupal\Core\DatabaseView source
class IntegrityConstraintViolationException extends \RuntimeException implements DatabaseException {
}