MissingBundleClassException.php

Same filename in other branches
  1. 10 core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php
  2. 11.x core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php

Namespace

Drupal\Core\Entity\Exception

File

core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php

View source
<?php

namespace Drupal\Core\Entity\Exception;


/**
 * Exception thrown if a bundle class does not exist.
 *
 * @see \Drupal\Core\Entity\ContentEntityStorageBase::getEntityClass()
 */
class MissingBundleClassException extends \Exception {
    
    /**
     * Constructs a MissingBundleClassException.
     *
     * @param string $bundle_class
     *   The bundle class which should exist.
     */
    public function __construct(string $bundle_class) {
        $message = sprintf('Bundle class %s does not exist.', $bundle_class);
        parent::__construct($message);
    }

}

Classes

Title Deprecated Summary
MissingBundleClassException Exception thrown if a bundle class does not exist.

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