aboutsummaryrefslogblamecommitdiffhomepage
path: root/application/api/exceptions/ApiLinkNotFoundException.php
blob: de7e14f5c9cd16822bec865b5773a5d31ccc80d8 (plain) (tree)































                                                                 
<?php

namespace Shaarli\Api\Exceptions;


use Slim\Http\Response;

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

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