You are here

class SchemaObjectExistsException in Drupal 9

Same name and namespace in other branches
  1. 8 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

Expanded class hierarchy of SchemaObjectExistsException

7 files declare their use of SchemaObjectExistsException
DatabaseStorage.php in core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php
DbImportCommand.php in core/lib/Drupal/Core/Command/DbImportCommand.php
Schema.php in core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
Schema.php in core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Schema.php in core/lib/Drupal/Core/Database/Driver/mysql/Schema.php

... See full list

File

core/lib/Drupal/Core/Database/SchemaObjectExistsException.php, line 12

Namespace

Drupal\Core\Database
View source
class SchemaObjectExistsException extends SchemaException implements DatabaseException {

}

Members