for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace inroutephp\inroute\Runtime\Exception;
use Psr\Http\Message\ServerRequestInterface;
class RequestException extends RuntimeException
{
/**
* @var ServerRequestInterface
*/
private $request;
* @var array
private $context;
public function __construct(ServerRequestInterface $request, array $context = [])
parent::__construct();
$this->request = $request;
$this->context = $context;
}
public function getRequest(): ServerRequestInterface
return $this->request;
public function getContext(): array
return $this->context;