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

Breadcrumb

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

function VersionNotFoundException::__construct

File

core/modules/jsonapi/src/Revisions/VersionNotFoundException.php, line 19

Class

VersionNotFoundException
Used when a version ID is valid, but the requested version does not exist.

Namespace

Drupal\jsonapi\Revisions

Code

public function __construct($message = '', $code = 0, ?\Exception $previous = NULL) {
    parent::__construct(!is_null($message) ? $message : 'The identified version could not be found.', $code, $previous);
}

API Navigation

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