aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/exceptions/ApiInternalException.php
blob: 1cb05532b3b3e62409085a00eecb020884486d79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Shaarli\Api\Exceptions;

/**
 * Class ApiInternalException
 *
 * Generic exception, return a 500 HTTP code.
 */
class ApiInternalException extends ApiException
{
    /**
     * @inheritdoc
     */
    public function getApiResponse()
    {
        return $this->buildApiResponse(500);
    }
}