W3cubDocs

/Drupal 8

public function InstallerException::__construct

public InstallerException::__construct($message, $title = 'Error', $code = 0, \Exception $previous = NULL)

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.

File

core/lib/Drupal/Core/Installer/Exception/InstallerException.php, line 32

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Installer!Exception!InstallerException.php/function/InstallerException::__construct/8.1.x