]> git.immae.eu Git - github/shaarli/Shaarli.git/blame_incremental - application/api/exceptions/ApiLinkNotFoundException.php
Fix metadata extract regex (2)
[github/shaarli/Shaarli.git] / application / api / exceptions / ApiLinkNotFoundException.php
... / ...
CommitLineData
1<?php
2
3namespace 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 */
12class 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}