public function RequirementsException::__construct in Drupal 8
Same name and namespace in other branches
- 9 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 33
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;
}