Appears to be a matter of consistency of the sweet. Cakes have a spongy texture so absorbs moisture. So on the way down while swallowing, might have created a sense of obstruction.
Next Steps
Eat slowly, swallow little at a time.
Health Tips
Drink sufficient water daily. Taking time to eat & enjoy your meal helps.