router->dispatch($request); } catch (Throwable $e) { if ($this->errorHandler === null) { throw $e; } return $this->errorHandler->render($e); } } }