You are here

class FieldException in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldException.php \Drupal\Core\Field\FieldException
  2. 10 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

11 files declare their use of FieldException
BaseFieldOverride.php in core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php
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.
FieldConfig.php in core/modules/field/src/Entity/FieldConfig.php

... See full list

File

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

Namespace

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

}

Members