function RequirementsException::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::__construct()
  2. 10 core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::__construct()
  3. 11.x 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 33

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;
}

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