class InstallerException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 extends \Drupal\Core\Installer\Exception\RuntimeException uses StringTranslationTrait
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 15 - Contains \Drupal\Core\Installer\Exception\InstallerException.
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 $title
* The page title.
* @param string $message
* (optional) The exception message. 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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstallerException:: |
protected | property | The page title to output. | |
InstallerException:: |
public | function | Returns the exception page title. | |
InstallerException:: |
public | function | Constructs a new installer exception. | 2 |
StringTranslationTrait:: |
protected | property | The string translation service. | |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |