' if not. * @param \Drupal\media\OEmbed\Provider $provider * (optional) The provider information. * @param \Throwable $previous * (optional) The previous exception, if any. */ public function __construct($message, ?Provider $provider = NULL, ?\Throwable $previous = NULL) { $this->provider = $provider; $message = str_replace('@name', $provider ? $provider->getName() : '', $message); parent::__construct($message, 0, $previous); } }