public CmsRoleViolationException createRoleViolationExceptionForOrgUnit(
        CmsRequestContext requestContext,
        String orgUnitFqn) {

        return new CmsRoleViolationException(
            Messages.get().container(
                Messages.ERR_USER_NOT_IN_ROLE_FOR_ORGUNIT_3,
                requestContext.getCurrentUser().getName(),
                getName(requestContext.getLocale()),
                orgUnitFqn));
    }
public CmsRoleViolationException createRoleViolationExceptionForOrgUnit ( CmsRequestContext requestContext , String orgUnitFqn ) { return new CmsRoleViolationException ( Messages . get ( ) . container ( Messages . ERR_USER_NOT_IN_ROLE_FOR_ORGUNIT_3 , requestContext . getCurrentUser ( ) . getName ( ) , getName ( requestContext . getLocale ( ) ) , orgUnitFqn ) ) ; }
Returns a role violation exception configured with a localized, role specific message
for this role.<p>

@param requestContext the current users OpenCms request context
@param orgUnitFqn the organizational unit used for the role check, it may be <code>null</code>

@return a role violation exception configured with a localized, role specific message
for this role