Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

UnknownRecipeException.php

Namespace

Drupal\Core\Recipe

File

core/lib/Drupal/Core/Recipe/UnknownRecipeException.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Recipe;


/**
 * Exception thrown when recipe is can not be found.
 *
 * @internal
 *   This API is experimental.
 */
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);
    }

}

Classes

Title Deprecated Summary
UnknownRecipeException Exception thrown when recipe is can not be found.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal