Eating hurts

I haven’t been able to eat without pain since Saturday. I have tried to force myself to eat, but it’s just too hard. What do y’all do when your body rejects food?