It would be better to throw a ``ValueError`` here.