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