]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - exceptions/ApiLinkNotFoundException.php
Merge pull request #1698 from ArthurHoaro/feature/plugins-search-filter
[github/shaarli/Shaarli.git] / exceptions / ApiLinkNotFoundException.php
1 <?php
2
3 namespace Shaarli\Api\Exceptions;
4
5 /**
6 * Class ApiLinkNotFoundException
7 *
8 * Link selected by ID couldn't be found, results in a 404 error.
9 *
10 * @package Shaarli\Api\Exceptions
11 */
12 class ApiLinkNotFoundException extends ApiException
13 {
14 /**
15 * ApiLinkNotFoundException constructor.
16 */
17 public function __construct()
18 {
19 $this->message = 'Link not found';
20 }
21
22 /**
23 * {@inheritdoc}
24 */
25 public function getApiResponse()
26 {
27 return $this->buildApiResponse(404);
28 }
29 }