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