def _validate_exclude_fields(self, exclude_fields):
        """
        Validate that provided exclude fields are valid.
        """
        if not exclude_fields:
            return exclude_fields

        if not self.valid_exclude_attributes:
            return exclude_fields

        for field in exclude_fields:
            if field not in self.valid_exclude_attributes:
                msg = "Invalid or unsupported exclude attribute specified: %s" % (field)
                raise ValueError(msg)

        return exclude_fields

        Validate that provided exclude fields are valid.
        
st2api/st2api/controllers/resource.py