class VendorDirectoryNotFoundException in Vendor Stream Wrapper 8
Exception thrown when the vendor directory cannot be retrieved.
Hierarchy
- class \Drupal\vendor_stream_wrapper\Exception\VendorDirectoryNotFoundException extends \Exception uses StringTranslationTrait
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\ExceptionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
VendorDirectoryNotFoundException:: |
public | function |