Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Exception / AmbiguousEntityClassException.php
1 <?php
2
3 namespace Drupal\Core\Entity\Exception;
4
5 /**
6  * Exception thrown if multiple entity types exist for an entity class.
7  *
8  * @see hook_entity_info_alter()
9  */
10 class AmbiguousEntityClassException extends \Exception {
11
12   /**
13    * Constructs an AmbiguousEntityClassException.
14    *
15    * @param string $class
16    *   The entity parent class.
17    */
18   public function __construct($class) {
19     $message = sprintf('Multiple entity types found for %s.', $class);
20     parent::__construct($message);
21   }
22
23 }