Raise exception when input is missing