aboutsummaryrefslogblamecommitdiffhomepage
path: root/application/api/exceptions/ApiInternalException.php
blob: 1cb05532b3b3e62409085a00eecb020884486d79 (plain) (tree)


















                                               
<?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);
    }
}