class 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

File

core/lib/Drupal/Core/Database/IntegrityConstraintViolationException.php, line 11

Namespace

Drupal\Core\Database

Members

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!IntegrityConstraintViolationException.php/class/IntegrityConstraintViolationException/8.1.x