namespace Drupal\Core\Entity\Exception

Same name in other branches
  1. 8.9.x Drupal\Core\Entity\Exception
  2. 10 Drupal\Core\Entity\Exception
  3. 11.x Drupal\Core\Entity\Exception
Object name File name Summary
AmbiguousBundleClassException core/lib/Drupal/Core/Entity/Exception/AmbiguousBundleClassException.php Exception thrown if a bundle class is defined for multiple bundles.
AmbiguousEntityClassException core/lib/Drupal/Core/Entity/Exception/AmbiguousEntityClassException.php Exception thrown if multiple entity types exist for an entity class.
BundleClassInheritanceException core/lib/Drupal/Core/Entity/Exception/BundleClassInheritanceException.php Exception thrown if a bundle class does not extend the main entity class.
EntityTypeIdLengthException core/lib/Drupal/Core/Entity/Exception/EntityTypeIdLengthException.php Defines an exception thrown when an entity ID is too long.
FieldStorageDefinitionUpdateForbiddenException core/lib/Drupal/Core/Entity/Exception/FieldStorageDefinitionUpdateForbiddenException.php Exception thrown when a storage definition update is forbidden.
InvalidLinkTemplateException core/lib/Drupal/Core/Entity/Exception/InvalidLinkTemplateException.php Indicates that a link template does not follow the required pattern.
MissingBundleClassException core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php Exception thrown if a bundle class does not exist.
NoCorrespondingEntityClassException core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php Exception thrown if an entity type is not represented by a class.
UndefinedLinkTemplateException core/lib/Drupal/Core/Entity/Exception/UndefinedLinkTemplateException.php Defines an exception class for undefined link templates.
UnsupportedEntityTypeDefinitionException core/lib/Drupal/Core/Entity/Exception/UnsupportedEntityTypeDefinitionException.php Defines an exception thrown when an entity type definition is invalid.

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