class UnknownRecipeException

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Recipe/UnknownRecipeException.php \Drupal\Core\Recipe\UnknownRecipeException

Exception thrown when recipe is can not be found.

@internal This API is experimental.

Hierarchy

Expanded class hierarchy of UnknownRecipeException

1 file declares its use of UnknownRecipeException
RecipeConfiguratorTest.php in core/tests/Drupal/KernelTests/Core/Recipe/RecipeConfiguratorTest.php

File

core/lib/Drupal/Core/Recipe/UnknownRecipeException.php, line 13

Namespace

Drupal\Core\Recipe
View source
final class UnknownRecipeException extends \RuntimeException {
    
    /**
     * @param string $recipe
     *   The recipe's name.
     * @param string $searchPath
     *   The path searched for the recipe.
     * @param string $message
     *   (optional) The exception message.
     * @param int $code
     *   (optional) The exception code.
     * @param \Throwable|null $previous
     *   (optional) The previous exception.
     */
    public function __construct(string $recipe, string $searchPath, string $message = "", int $code = 0, ?\Throwable $previous = NULL) {
        parent::__construct($message, $code, $previous);
    }

}

Members

Title Sort descending Modifiers Object type Summary
UnknownRecipeException::__construct public function

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