class FieldException

Same name in other branches
  1. 7.x modules/field/field.module \FieldException
  2. 9 core/lib/Drupal/Core/Field/FieldException.php \Drupal\Core\Field\FieldException
  3. 10 core/lib/Drupal/Core/Field/FieldException.php \Drupal\Core\Field\FieldException
  4. 11.x 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

10 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
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
FieldCrudTest.php in core/modules/field/tests/src/Kernel/FieldCrudTest.php

... See full list

File

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

Namespace

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

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.