Raise an exception if bad filters are used.