class ProviderException extends Exception (View source)

internal  This is an internal part of the oEmbed system and should only be used by oEmbed-related code in Drupal core.
 

Exception thrown if an oEmbed provider causes an error.

Properties

protected Provider $provider

Information about the oEmbed provider which caused the exception.

Methods

__construct(string $message, Provider $provider = NULL, Exception $previous = NULL)

ProviderException constructor.

Details

__construct(string $message, Provider $provider = NULL, Exception $previous = NULL)

ProviderException constructor.

Parameters

string $message

The exception message. '@name' will be replaced with the provider name if available, or '' if not.

Provider $provider

(optional) The provider information.

Exception $previous

(optional) The previous exception, if any.