Probably just a little stomach acid came up your throat. It happens. Drink a nice glass of water and I bet you'll be fine.
1-2 antacid tablets, if it happens again.
It might have been something you ate.
You've got GE gastroesophageal reflux you need to see your doctor or a gastroenterologist. It can cause ulcers in your esophagus if left untreated or a stomach ulcer.