class RecipePreExistingConfigException
Exception thrown when a recipe has configuration that exists already.
@internal This API is experimental.
Hierarchy
- class \Drupal\Core\Recipe\RecipePreExistingConfigException extends \Drupal\Core\Recipe\RuntimeException
 
Expanded class hierarchy of RecipePreExistingConfigException
2 files declare their use of RecipePreExistingConfigException
- RecipeRunnerTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeRunnerTest.php  - RecipeTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeTest.php  
File
- 
              core/
lib/ Drupal/ Core/ Recipe/ RecipePreExistingConfigException.php, line 13  
Namespace
Drupal\Core\RecipeView source
class RecipePreExistingConfigException extends \RuntimeException {
  
  /**
   * Constructs a RecipePreExistingConfigException.
   *
   * @param string $configName
   *   The configuration name that has missing dependencies.
   * @param string $message
   *   [optional] The Exception message to throw.
   * @param int $code
   *   [optional] The Exception code.
   * @param null|\Throwable $previous
   *   [optional] The previous throwable used for the exception chaining.
   */
  public function __construct(public readonly string $configName, string $message = "", int $code = 0, ?\Throwable $previous = NULL) {
    parent::__construct($message, $code, $previous);
  }
}
Members
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| RecipePreExistingConfigException::__construct | public | function | Constructs a RecipePreExistingConfigException. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.