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