aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/exceptions/ApiTagNotFoundException.php
blob: eed5afa57c1ba1eafbb08806a8d5605819950afe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

namespace Shaarli\Api\Exceptions;


use Slim\Http\Response;

/**
 * Class ApiTagNotFoundException
 *
 * Tag selected by name couldn't be found in the datastore, results in a 404 error.
 *
 * @package Shaarli\Api\Exceptions
 */
class ApiTagNotFoundException extends ApiException
{
    /**
     * ApiLinkNotFoundException constructor.
     */
    public function __construct()
    {
        $this->message = 'Tag not found';
    }

    /**
     * {@inheritdoc}
     */
    public function getApiResponse()
    {
        return $this->buildApiResponse(404);
    }
}