annotate 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
rev   line source
Chris@5 1 <?php
Chris@5 2
Chris@5 3 namespace Drupal\jsonapi\Revisions;
Chris@5 4
Chris@5 5 /**
Chris@5 6 * Used when a version ID is valid, but the requested version does not exist.
Chris@5 7 *
Chris@5 8 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This
Chris@5 9 * class may change at any time and this will break any dependencies on it.
Chris@5 10 *
Chris@5 11 * @see https://www.drupal.org/project/jsonapi/issues/3032787
Chris@5 12 * @see jsonapi.api.php
Chris@5 13 */
Chris@5 14 class VersionNotFoundException extends \InvalidArgumentException {
Chris@5 15
Chris@5 16 /**
Chris@5 17 * {@inheritdoc}
Chris@5 18 */
Chris@5 19 public function __construct($message = NULL, $code = 0, \Exception $previous = NULL) {
Chris@5 20 parent::__construct(!is_null($message) ? $message : 'The identified version could not be found.', $code, $previous);
Chris@5 21 }
Chris@5 22
Chris@5 23 }