You are here

class VendorDirectoryNotFoundException in Vendor Stream Wrapper 8

Exception thrown when the vendor directory cannot be retrieved.

Hierarchy

Expanded class hierarchy of VendorDirectoryNotFoundException

1 file declares its use of VendorDirectoryNotFoundException
VendorStreamWrapper.php in src/StreamWrapper/VendorStreamWrapper.php

File

src/Exception/VendorDirectoryNotFoundException.php, line 12

Namespace

Drupal\vendor_stream_wrapper\Exception
View source
class VendorDirectoryNotFoundException extends Exception {
  use StringTranslationTrait;

  /**
   * {@inheritdoc}
   */
  public function __construct($message = "", int $code = 0, Throwable $previous = NULL) {
    $message = $this
      ->t('The vendor directory could not be found, and needs to be added to settings.php') . PHP_EOL . $message;
    parent::__construct($message, $code, $previous);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
VendorDirectoryNotFoundException::__construct public function