]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - exceptions/ApiLinkNotFoundException.php
3 namespace Shaarli\Api\Exceptions
;
6 * Class ApiLinkNotFoundException
8 * Link selected by ID couldn't be found, results in a 404 error.
10 * @package Shaarli\Api\Exceptions
12 class ApiLinkNotFoundException
extends ApiException
15 * ApiLinkNotFoundException constructor.
17 public function __construct()
19 $this->message
= 'Link not found';
25 public function getApiResponse()
27 return $this->buildApiResponse(404);