function RecipeFileException::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Recipe/RecipeFileException.php \Drupal\Core\Recipe\RecipeFileException::__construct()

Constructs a RecipeFileException object.

Parameters

string $path: The path of the offending recipe file.

string $message: (optional) The exception message.

\Symfony\Component\Validator\ConstraintViolationList|null $violations: (optional) A list of validation constraint violations in the recipe file, if any.

int $code: (optional) The exception code.

\Throwable|null $previous: (optional) The previous exception, if any.

File

core/lib/Drupal/Core/Recipe/RecipeFileException.php, line 30

Class

RecipeFileException
@internal This API is experimental.

Namespace

Drupal\Core\Recipe

Code

public function __construct(string $path, string $message = '', ?ConstraintViolationList $violations = NULL, int $code = 0, ?\Throwable $previous = NULL) {
    parent::__construct($message, $code, $previous);
}

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