]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/api/exceptions/ApiTagNotFoundException.php
Optimize and cleanup imports
[github/shaarli/Shaarli.git] / application / api / exceptions / ApiTagNotFoundException.php
1 <?php
2
3 namespace Shaarli\Api\Exceptions;
4
5 /**
6 * Class ApiTagNotFoundException
7 *
8 * Tag selected by name couldn't be found in the datastore, results in a 404 error.
9 *
10 * @package Shaarli\Api\Exceptions
11 */
12 class ApiTagNotFoundException extends ApiException
13 {
14 /**
15 * ApiLinkNotFoundException constructor.
16 */
17 public function __construct()
18 {
19 $this->message = 'Tag not found';
20 }
21
22 /**
23 * {@inheritdoc}
24 */
25 public function getApiResponse()
26 {
27 return $this->buildApiResponse(404);
28 }
29 }