public function __construct(Exception $exception, RequestInterface $request = null) { $this->exception = $exception; $this->request = $request; }