Throwing a ValueError like this immediately kills the sphinx build process, which isn't good because you want to see all the errors that are generated.  So instead, I'd suggest using ``self.warn("Cannot use both :skip: and :include: in an automodapi directive.  Skipping this automodapi directive.")``.  Then just return an empty sourcestr or something like that.