Commit ee52df94 authored by webchick's avatar webchick

Issue #2326981 by effulgentsia: Move \Drupal\field\FieldException to...

Issue #2326981 by effulgentsia: Move \Drupal\field\FieldException to \Drupal\Core\Field\FieldException.
parent 1b252200
......@@ -11,7 +11,6 @@
use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\Core\Field\TypedData\FieldItemDataDefinition;
use Drupal\Core\TypedData\ListDataDefinition;
use Drupal\field\FieldException;
/**
* A class for defining entity fields.
......
......@@ -9,9 +9,9 @@
use Drupal\Component\Utility\String;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldConfigBase;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\field\FieldException;
use Drupal\Core\Field\FieldConfigBase;
use Drupal\Core\Field\FieldException;
/**
* Defines the base field override entity.
......@@ -80,7 +80,7 @@ public static function createFromBaseFieldDefinition(BaseFieldDefinition $base_f
*
* @see entity_create()
*
* @throws \Drupal\field\FieldException
* @throws \Drupal\Core\Field\FieldException
* Exception thrown if $values does not contain a field_name, entity_type or
* bundle value.
*/
......@@ -149,7 +149,7 @@ protected function getBaseFieldDefinition() {
/**
* {@inheritdoc}
*
* @throws \Drupal\field\FieldException
* @throws \Drupal\Core\Field\FieldException
* If the bundle is being changed and
* BaseFieldOverride::allowBundleRename() has not been called.
*/
......
......@@ -2,15 +2,15 @@
/*
* @file
* Definition of Drupal\field\FieldExeption.
* Contains \Drupal\Core\Field\FieldException.
*/
namespace Drupal\field;
namespace Drupal\Core\Field;
/**
* Base class for all exceptions thrown by Field API functions.
* Base class for all exceptions thrown by the Entity Field API functions.
*
* This class has no functionality of its own other than allowing all
* Field API exceptions to be caught by a single catch block.
* Entity Field API exceptions to be caught by a single catch block.
*/
class FieldException extends \RuntimeException {}
......@@ -5,9 +5,9 @@
* Provides support for field data purge after mass deletion.
*/
use Drupal\Core\Field\FieldException;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\field\FieldException;
/**
* @defgroup field_purge Field API bulk data deletion
......
......@@ -10,7 +10,7 @@
use Drupal\Component\Utility\String;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldConfigBase;
use Drupal\field\FieldException;
use Drupal\Core\Field\FieldException;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\field\FieldInstanceConfigInterface;
......@@ -127,7 +127,7 @@ public function postCreate(EntityStorageInterface $storage) {
/**
* Overrides \Drupal\Core\Entity\Entity::preSave().
*
* @throws \Drupal\field\FieldException
* @throws \Drupal\Core\Field\FieldException
* If the field instance definition is invalid.
* @throws \Drupal\Core\Entity\EntityStorageException
* In case of failures at the configuration storage level.
......
......@@ -11,8 +11,8 @@
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\FieldException;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\field\FieldException;
use Drupal\field\FieldStorageConfigInterface;
/**
......@@ -227,7 +227,7 @@ public function id() {
/**
* Overrides \Drupal\Core\Entity\Entity::preSave().
*
* @throws \Drupal\field\FieldException
* @throws \Drupal\Core\Field\FieldException
* If the field definition is invalid.
* @throws \Drupal\Core\Entity\EntityStorageException
* In case of failures at the configuration storage level.
......@@ -254,7 +254,7 @@ public function preSave(EntityStorageInterface $storage) {
* @param \Drupal\Core\Entity\EntityStorageInterface $storage
* The entity storage.
*
* @throws \Drupal\field\FieldException If the field definition is invalid.
* @throws \Drupal\Core\Field\FieldException If the field definition is invalid.
*/
protected function preSaveNew(EntityStorageInterface $storage) {
$entity_manager = \Drupal::entityManager();
......
......@@ -7,6 +7,8 @@
namespace Drupal\field;
use Drupal\Core\Field\FieldException;
/**
* Exception class thrown by hook_field_storage_config_update_forbid().
*/
......
......@@ -9,8 +9,8 @@
use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException;
use Drupal\Core\Field\FieldException;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldException;
/**
* Tests field storage create, read, update, and delete.
......
......@@ -8,9 +8,9 @@
namespace Drupal\field\Tests;
use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Field\FieldException;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldInstanceConfig;
use Drupal\field\FieldException;
/**
* Create field entities by attaching fields to entities.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment