protected function findRole($roleName)
    {
        if (($role = $this->_authManager->getRole($roleName)) !== null) {
            return $role;
        }

        throw new Exception(Yii::t('yii2mod.user', 'The role "{roleName}" is not found.', [
            'roleName' => $roleName,
        ]));
    }
protected function findRole($roleName)
    {
        if (($role = $this->_authManager->getRole($roleName)) !== null) {
            return $role;
        }

        throw new Exception(Yii::t('yii2mod.user', 'The role "{roleName}" is not found.', [
            'roleName' => $roleName,
        ]));
    }
protected function findRole ( $ roleName ) { if ( ( $ role = $ this -> _authManager -> getRole ( $ roleName ) ) !== null ) { return $ role ; } throw new Exception ( Yii :: t ( 'yii2mod.user' , 'The role "{roleName}" is not found.' , [ 'roleName' => $ roleName , ] ) ) ; }
Returns the named role.

@param string $roleName

@return Role

@throws Exception
Returns the named role .