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