ResourceException
class ResourceException 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 resource cannot be fetched or parsed.
Properties
| protected string | $url | The URL of the resource. |
|
| protected array | $data | The resource data. |
Methods
__construct(string $message, string $url, array $data = [], Exception $previous = NULL)
ResourceException constructor.
string
getUrl()
Gets the URL of the resource which caused the exception.
array
getData()
Gets the raw resource data, if available.
Details
__construct(string $message, string $url, array $data = [], Exception $previous = NULL)
ResourceException constructor.
string
getUrl()
Gets the URL of the resource which caused the exception.
array
getData()
Gets the raw resource data, if available.