Maybe raise a ValueError will be good enough.