]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/api/exceptions/ApiLinkNotFoundException.php
3 namespace Shaarli\Api\Exceptions
;
6 use Slim\Http\Response
;
9 * Class ApiLinkNotFoundException
11 * Link selected by ID couldn't be found, results in a 404 error.
13 * @package Shaarli\Api\Exceptions
15 class ApiLinkNotFoundException
extends ApiException
18 * ApiLinkNotFoundException constructor.
20 public function __construct()
22 $this->message
= 'Link not found';
28 public function getApiResponse()
30 return $this->buildApiResponse(404);