You are here

public function InstallerException::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Installer/Exception/InstallerException.php \Drupal\Core\Installer\Exception\InstallerException::__construct()

Constructs a new installer exception.

Parameters

string $title: The page title.

string $message: (optional) The exception message. Defaults to 'Error'.

int $code: (optional) The exception code. Defaults to 0.

\Exception $previous: (optional) A previous exception.

2 calls to InstallerException::__construct()
AlreadyInstalledException::__construct in core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php
Constructs a new "already installed" exception.
NoProfilesException::__construct in core/lib/Drupal/Core/Installer/Exception/NoProfilesException.php
Constructs a new "no profiles available" exception.
2 methods override InstallerException::__construct()
AlreadyInstalledException::__construct in core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php
Constructs a new "already installed" exception.
NoProfilesException::__construct in core/lib/Drupal/Core/Installer/Exception/NoProfilesException.php
Constructs a new "no profiles available" exception.

File

core/lib/Drupal/Core/Installer/Exception/InstallerException.php, line 37
Contains \Drupal\Core\Installer\Exception\InstallerException.

Class

InstallerException
Base class for exceptions thrown by installer.

Namespace

Drupal\Core\Installer\Exception

Code

public function __construct($message, $title = 'Error', $code = 0, \Exception $previous = NULL) {
  parent::__construct($message, $code, $previous);
  $this->title = $title;
}