Exception thrown to invalid values