function InstallerException::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Installer/Exception/InstallerException.php \Drupal\Core\Installer\Exception\InstallerException::__construct()
Constructs a new installer exception.
Parameters
string $message: The exception message.
string $title: (optional) The page title. Defaults to 'Error'.
int $code: (optional) The exception code. Defaults to 0.
\Exception $previous: (optional) A previous exception.
File
-
core/
lib/ Drupal/ Core/ Installer/ Exception/ InstallerException.php, line 32
Class
- InstallerException
- Base class for exceptions thrown by installer.
Namespace
Drupal\Core\Installer\ExceptionCode
public function __construct($message, $title = 'Error', $code = 0, \Exception $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->title = $title;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.