public function getRoute($name)
    {
        if (! $this->hasRoute($name)) {
            throw new \Exception($name);
        }
        return $this->routes[$name];
    }
public function getRoute($name)
    {
        if (! $this->hasRoute($name)) {
            throw new \Exception($name);
        }
        return $this->routes[$name];
    }
public function getRoute ( $ name ) { if ( ! $ this -> hasRoute ( $ name ) ) { throw new \ Exception ( $ name ) ; } return $ this -> routes [ $ name ] ; }
Get a route by name

@param mixed $name name of route

@return Route
@throws \Exception if route does not exist

@access public
Get a route by name