Throw exception if the setProducts method does not exist