/** * @param string $route URL after processed with url rules (by method Router::UrlToRouteAndParams()) * @param string $url Complete url similar to one returned by method Router::getUrl(). * @throws PageNotFoundException */ public static function alert($route, $url) { $e = new PageNotFoundException("Page {$url} not found"); $e->setRoute($route); $e->setUrl($url); throw $e; }