3 namespace Drupal\Core\Installer\Exception;
5 use Drupal\Core\StringTranslation\TranslationInterface;
8 * Exception thrown if no installation profiles are available.
10 class NoProfilesException extends InstallerException {
13 * Constructs a new "no profiles available" exception.
15 * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
16 * The string translation manager.
18 public function __construct(TranslationInterface $string_translation) {
19 $this->stringTranslation = $string_translation;
21 $title = $this->t('No profiles available');
22 $message = $this->t('We were unable to find any installation profiles. Installation profiles tell us what modules to enable and what schema to install in the database. A profile is necessary to continue with the installation process.');
23 parent::__construct($message, $title);