Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/jsonapi/src/Revisions/VersionNotFoundException.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\jsonapi\Revisions; | |
4 | |
5 /** | |
6 * Used when a version ID is valid, but the requested version does not exist. | |
7 * | |
8 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This | |
9 * class may change at any time and this will break any dependencies on it. | |
10 * | |
11 * @see https://www.drupal.org/project/jsonapi/issues/3032787 | |
12 * @see jsonapi.api.php | |
13 */ | |
14 class VersionNotFoundException extends \InvalidArgumentException { | |
15 | |
16 /** | |
17 * {@inheritdoc} | |
18 */ | |
19 public function __construct($message = NULL, $code = 0, \Exception $previous = NULL) { | |
20 parent::__construct(!is_null($message) ? $message : 'The identified version could not be found.', $code, $previous); | |
21 } | |
22 | |
23 } |