You are here

class FieldException in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldException.php \Drupal\Core\Field\FieldException
  2. 9 core/lib/Drupal/Core/Field/FieldException.php \Drupal\Core\Field\FieldException

Base class for all exceptions thrown by the Entity Field API functions.

This class has no functionality of its own other than allowing all Entity Field API exceptions to be caught by a single catch block.

Hierarchy

  • class \Drupal\Core\Field\FieldException extends \Drupal\Core\Field\RuntimeException

Expanded class hierarchy of FieldException

8 files declare their use of FieldException
EntityDefinitionUpdateTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
EntityReferenceItem.php in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
field.purge.inc in core/modules/field/field.purge.inc
Provides support for field data purge after mass deletion.
FieldCrudTest.php in core/modules/field/tests/src/Kernel/FieldCrudTest.php
FieldStorageConfigEntityUnitTest.php in core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
Contains \Drupal\Tests\field\Unit\FieldStorageConfigEntityUnitTest.

... See full list

3 string references to 'FieldException'
drupal7.php in core/modules/tracker/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/rdf/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.
drupal7.php in core/modules/migrate_drupal/tests/fixtures/drupal7.php
A database agnostic dump for testing purposes.

File

core/lib/Drupal/Core/Field/FieldException.php, line 11

Namespace

Drupal\Core\Field
View source
class FieldException extends \RuntimeException {

}

Members