Raise exception when the number to test is less than zero