Please through an IllegalArgumentException, when a wrong value of gravity is supplied.