
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Entity/Exception/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php |
<?php
namespace Drupal\Core\Entity\Exception;
/**
* Exception thrown if an entity type is not represented by a class.
*
* This might occur by calling a static method on an abstract class.
*
* @see \Drupal\Core\Entity\Entity::getEntityTypeFromStaticClass()
*/
class NoCorrespondingEntityClassException extends \Exception {
/**
* Constructs an NoCorrespondingEntityClassException.
*
* @param string $class
* The class which does not correspond to an entity type.
*/
public function __construct($class) {
$message = sprintf('The %s class does not correspond to an entity type.', $class);
parent::__construct($message);
}
}