/** * Fetches the defined 404 path for the current route. * * @return string */ public static function get404Path() { // TODO: Get 404 from default route if (!isset(self::$current_route)) { throw new vB_Exception_Router('404 path requested for current route but no current route has been resolved.'); } return self::$current_route->get404Path(); }