raise exception for invalid w3_getval input