X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmedia%2Fsrc%2FOEmbed%2FResourceException.php;fp=web%2Fcore%2Fmodules%2Fmedia%2Fsrc%2FOEmbed%2FResourceException.php;h=433867834e5452ef05898e477d3b8b2689c7fcd4;hp=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/media/src/OEmbed/ResourceException.php b/web/core/modules/media/src/OEmbed/ResourceException.php new file mode 100644 index 000000000..433867834 --- /dev/null +++ b/web/core/modules/media/src/OEmbed/ResourceException.php @@ -0,0 +1,67 @@ +url = $url; + $this->data = $data; + parent::__construct($message, 0, $previous); + } + + /** + * Gets the URL of the resource which caused the exception. + * + * @return string + * The URL of the resource. + */ + public function getUrl() { + return $this->url; + } + + /** + * Gets the raw resource data, if available. + * + * @return array + * The resource data. + */ + public function getData() { + return $this->data; + } + +}