class IntegrityConstraintViolationException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 DatabaseException
Expanded class hierarchy of IntegrityConstraintViolationException
4 files declare their use of IntegrityConstraintViolationException
- DatabaseLockBackend.php in core/
lib/ Drupal/ Core/ Lock/ DatabaseLockBackend.php - Contains \Drupal\Core\Lock\DatabaseLockBackend.
- EntityDefinitionUpdateTest.php in core/
modules/ system/ src/ Tests/ Entity/ EntityDefinitionUpdateTest.php - Contains \Drupal\system\Tests\Entity\EntityDefinitionUpdateTest.
- InvalidDataTest.php in core/
modules/ system/ src/ Tests/ Database/ InvalidDataTest.php - Contains \Drupal\system\Tests\Database\InvalidDataTest.
- Merge.php in core/
lib/ Drupal/ Core/ Database/ Query/ Merge.php - Contains \Drupal\Core\Database\Query\Merge.
File
- core/
lib/ Drupal/ Core/ Database/ IntegrityConstraintViolationException.php, line 16 - Contains \Drupal\Core\Database\IntegrityConstraintViolationException.
Namespace
Drupal\Core\DatabaseView source
class IntegrityConstraintViolationException extends \RuntimeException implements DatabaseException {
}