blob: b0f63c002824d9c2eea400e0cdeca7643c1b5789 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?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(public readonly string $recipe, public readonly string $searchPath, string $message = "", int $code = 0, ?\Throwable $previous = NULL) {
parent::__construct($message, $code, $previous);
}
}
|