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 Genvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fresh\CommonApiBundle\Exception;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* ServerInternalErrorException.
* @author Artem Genvald <[email protected]>
class ServerInternalErrorException extends HttpException
{
* Constructor.
* @param string $message The internal exception message
* @param \Exception $previous The previous exception
* @param int $code The internal exception code
public function __construct($message = null, \Exception $previous = null, $code = 0)
parent::__construct(Response::HTTP_INTERNAL_SERVER_ERROR, $message, $previous, [], $code);
}