
| Current Path : /var/www/html1/testsite/web/themes/contrib/bootstrap/src/Plugin/Provider/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //var/www/html1/testsite/web/themes/contrib/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;
}
}