class SchemaObjectExistsException
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/SchemaObjectExistsException.php \Drupal\Core\Database\SchemaObjectExistsException
- 10 core/lib/Drupal/Core/Database/SchemaObjectExistsException.php \Drupal\Core\Database\SchemaObjectExistsException
- 11.x core/lib/Drupal/Core/Database/SchemaObjectExistsException.php \Drupal\Core\Database\SchemaObjectExistsException
Exception thrown if an object being created already exists.
For example, this exception should be thrown whenever there is an attempt to create a new database table, field, or index that already exists in the database schema.
Hierarchy
- class \Drupal\Core\Database\SchemaException extends \Drupal\Core\Database\RuntimeException implements \Drupal\Core\Database\DatabaseException
- class \Drupal\Core\Database\SchemaObjectExistsException extends \Drupal\Core\Database\SchemaException implements \Drupal\Core\Database\DatabaseException
Expanded class hierarchy of SchemaObjectExistsException
6 files declare their use of SchemaObjectExistsException
- DbImportCommand.php in core/
lib/ Drupal/ Core/ Command/ DbImportCommand.php - Schema.php in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Schema.php - Schema.php in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Schema.php - Schema.php in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Schema.php - SchemaTest.php in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ SchemaTest.php
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaObjectExistsException.php, line 12
Namespace
Drupal\Core\DatabaseView source
class SchemaObjectExistsException extends SchemaException implements DatabaseException {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.