You got a throat burn from your stomach acid when you threw up.
That can make you hoarse and give you pain when you swallow. Usually this only takes a few days to disappear. It should at least get dramatically better in that time. If it persists or worsens see a doctor.