for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FreshCommonApiBundle
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\CommonApiBundle\Exception;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* ServerInternalErrorException.
* @author Artem Henvald <[email protected]>
class ServerInternalErrorException extends HttpException
{
* @param string $message
* @param \Exception|null $previous
* @param int $code
public function __construct(string $message = null, ?\Exception $previous = null, int $code = 0)
parent::__construct(Response::HTTP_INTERNAL_SERVER_ERROR, $message, $previous, [], $code);
}