public function AmbiguousBundleClassException::__construct in Drupal 10
Constructs an AmbiguousBundleClassException.
Parameters
string $class: The bundle class which is defined for multiple bundles.
Overrides AmbiguousEntityClassException::__construct
File
- core/
lib/ Drupal/ Core/ Entity/ Exception/ AmbiguousBundleClassException.php, line 19
Class
- AmbiguousBundleClassException
- Exception thrown if a bundle class is defined for multiple bundles.
Namespace
Drupal\Core\Entity\ExceptionCode
public function __construct(string $class) {
$message = sprintf('Multiple bundles are using the bundle class %s.', $class);
parent::__construct($message);
}