You are here

public function RequirementsException::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::__construct()
  2. 9 core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::__construct()

Constructs a new RequirementsException instance.

Parameters

string $message: (optional) The Exception message to throw.

array $requirements: (optional) The missing requirements.

int $code: (optional) The Exception code.

\Exception $previous: (optional) The previous exception used for the exception chaining.

File

core/modules/migrate/src/Exception/RequirementsException.php, line 31

Class

RequirementsException
Defines an exception thrown when a migration does not meet the requirements.

Namespace

Drupal\migrate\Exception

Code

public function __construct($message = "", array $requirements = [], $code = 0, \Exception $previous = NULL) {
  parent::__construct($message, $code, $previous);
  $this->requirements = $requirements;
}