Skip to content
IntegrityConstraintViolationException.php 423 B
Newer Older
 * Contains \Drupal\Core\Database\IntegrityConstraintViolationException.
 */

namespace Drupal\Core\Database;

/**
 * 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.
 */
class IntegrityConstraintViolationException extends \RuntimeException implements DatabaseException { }