Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InstallerException.php

function 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.

4 calls to InstallerException::__construct()
AlreadyInstalledException::__construct in core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php
Constructs a new "already installed" exception.
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.
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 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal