public function setAsFailRoute($bool = true)
    {
        if(!$bool)
            return $this;

        $name = $this->name;

        if(!$name)
            throw new InvalidArgumentException('This route has to be named first.');

        $this->group->setFailRoute($name);

        return $this;
    }
public function setAsFailRoute($bool = true)
    {
        if(!$bool)
            return $this;

        $name = $this->name;

        if(!$name)
            throw new InvalidArgumentException('This route has to be named first.');

        $this->group->setFailRoute($name);

        return $this;
    }
public function setAsFailRoute ( $ bool = true ) { if ( ! $ bool ) return $ this ; $ name = $ this -> name ; if ( ! $ name ) throw new InvalidArgumentException ( 'This route has to be named first.' ) ; $ this -> group -> setFailRoute ( $ name ) ; return $ this ; }
set this route as a fail route for the current group.

@return $this
@throws InvalidArgumentException
set this route as a fail route for the current group .