try{
$page = $pageService->findByUrl($url);
return $page->render();
}
catch (PageNotFound $ex) {
return $this->view("404_page");
}
catch (UnAutorization $ex) {
return redirect("/page-signin");
}
catch (Exception $ex) {
$this->logger->debug($ex->getMessage());
return $this->view("error_page");
}