You are here

IntegrityConstraintViolationException.php in Drupal 8

File

core/lib/Drupal/Core/Database/IntegrityConstraintViolationException.php
View source
<?php

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 {

}

Classes

Namesort descending Description
IntegrityConstraintViolationException Exception thrown if a query would violate an integrity constraint.