for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace App\Exception;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Throwable;
/**
* A BadGatewayException is for custom handling of upstream errors that are beyond the control of
* XTools maintainers. These errors are not logged by Monolog and hence no error email is sent out.
*/
class BadGatewayException extends HttpException
{
public function __construct(string $msgKey, Throwable $e)
parent::__construct(Response::HTTP_BAD_GATEWAY, $msgKey, $e);
}