aboutsummaryrefslogblamecommitdiffhomepage
path: root/application/api/exceptions/ApiLinkNotFoundException.php
blob: 7c2bb56ed781b3a2b76e0a66b688b384e706ee2c (plain) (tree)
1
2
3
4



                                 
























                                                                 
<?php

namespace Shaarli\Api\Exceptions;

/**
 * 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);
    }
}