function RequirementsException::__construct
Same name in other branches
- 9 core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::__construct()
- 8.9.x core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::__construct()
- 10 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\ExceptionCode
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.