hospital_management-8.x-1.x-dev/web/themes/bootstrap/src/Plugin/Provider/ProviderException.php

web/themes/bootstrap/src/Plugin/Provider/ProviderException.php
<?php

namespace Drupal\bootstrap\Plugin\Provider;

/**
 * Class ProviderException.
 */
class ProviderException extends \RuntimeException {

  /**
   * The CDN Provider that threw the exception.
   *
   * @var \Drupal\bootstrap\Plugin\Provider\ProviderInterface
   */
  protected $provider;

  /**
   * ProviderException constructor.
   *
   * @param \Drupal\bootstrap\Plugin\Provider\ProviderInterface $provider
   *   The CDN Provider that threw the exception.
   * @param string $message
   *   The exception message.
   * @param int $code
   *   The exception code.
   * @param \Throwable $previous
   *   A previous exception.
   */
  public function __construct(ProviderInterface $provider, $message = "", $code = 0, \Throwable $previous = NULL) {
    parent::__construct($message, $code, $previous);
    $this->provider = $provider;
  }

  /**
   * Retrieves the CDN Provider instance.
   *
   * @return \Drupal\bootstrap\Plugin\Provider\ProviderInterface
   *   The CDN Provider instance.
   */
  public function getProvider() {
    return $this->provider;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc