for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace IdNet\InvokerRouterMiddleware\Exception;
use Exception;
use Psr\Http\Message\ServerRequestInterface;
class NotFoundException extends Exception
{
/** @var ServerRequestInterface */
protected $request;
public function __construct(ServerRequestInterface $request, $code = 404)
$this->request = $request;
parent::__construct("Not found", $code);
}
public function getRequest()
return $this->request;