You are here

VendorDirectoryNotFoundException.php in Vendor Stream Wrapper 8

File

src/Exception/VendorDirectoryNotFoundException.php
View source
<?php

namespace Drupal\vendor_stream_wrapper\Exception;

use Exception;
use Throwable;
use Drupal\Core\StringTranslation\StringTranslationTrait;

/**
 * Exception thrown when the vendor directory cannot be retrieved.
 */
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);
  }

}

Classes

Namesort descending Description
VendorDirectoryNotFoundException Exception thrown when the vendor directory cannot be retrieved.