class InstallerException
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Installer/Exception/InstallerException.php \Drupal\Core\Installer\Exception\InstallerException
Base class for exceptions thrown by installer.
Hierarchy
- class \Drupal\Core\Installer\Exception\InstallerException uses \Drupal\Core\StringTranslation\StringTranslationTrait implements \Drupal\Core\Installer\Exception\RuntimeException
Expanded class hierarchy of InstallerException
1 file declares its use of InstallerException
- install.core.inc in core/
includes/ install.core.inc - API functions for installing Drupal.
File
-
core/
lib/ Drupal/ Core/ Installer/ Exception/ InstallerException.php, line 10
Namespace
Drupal\Core\Installer\ExceptionView source
class InstallerException extends \RuntimeException {
use StringTranslationTrait;
/**
* The page title to output.
*
* @var string
*/
protected $title;
/**
* Constructs a new installer exception.
*
* @param string $message
* The exception message.
* @param string $title
* (optional) The page title. Defaults to 'Error'.
* @param int $code
* (optional) The exception code. Defaults to 0.
* @param \Exception $previous
* (optional) A previous exception.
*/
public function __construct($message, $title = 'Error', $code = 0, \Exception $previous = NULL) {
parent::__construct($message, $code, $previous);
$this->title = $title;
}
/**
* Returns the exception page title.
*
* @return string
*/
public function getTitle() {
return $this->title;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.