You are here

public function MissingBundleClassException::__construct in Drupal 10

Constructs a MissingBundleClassException.

Parameters

string $bundle_class: The bundle class which should exist.

File

core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php, line 18

Class

MissingBundleClassException
Exception thrown if a bundle class does not exist.

Namespace

Drupal\Core\Entity\Exception

Code

public function __construct(string $bundle_class) {
  $message = sprintf('Bundle class %s does not exist.', $bundle_class);
  parent::__construct($message);
}