function VersionNotFoundException::__construct

Same name in other branches
  1. 8.9.x core/modules/jsonapi/src/Revisions/VersionNotFoundException.php \Drupal\jsonapi\Revisions\VersionNotFoundException::__construct()
  2. 10 core/modules/jsonapi/src/Revisions/VersionNotFoundException.php \Drupal\jsonapi\Revisions\VersionNotFoundException::__construct()
  3. 11.x core/modules/jsonapi/src/Revisions/VersionNotFoundException.php \Drupal\jsonapi\Revisions\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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.