Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResourceException.php

function ResourceException::__construct

ResourceException constructor.

Parameters

string $message: The exception message.

string $url: The URL of the resource. Can be the actual endpoint URL or the canonical URL.

array $data: (optional) The raw resource data, if available.

\Exception $previous: (optional) The previous exception, if any.

File

core/modules/media/src/OEmbed/ResourceException.php, line 41

Class

ResourceException
Exception thrown if an oEmbed resource cannot be fetched or parsed.

Namespace

Drupal\media\OEmbed

Code

public function __construct($message, $url, array $data = [], ?\Exception $previous = NULL) {
    $this->url = $url;
    $this->data = $data;
    parent::__construct($message, 0, $previous);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal