Curious of why I threw up

Al

So as I wake up, I have a normal day and I also have a Dr appt I was getting ready for. I had my Toast with cream cheese and hot chocolate but I put too much sugar in it. And then I went to the doctors office. As soon as I get there I sign in and sat down. Suddenly I felt Really Sick. I was getting hot flashes, my heart rate went up, I got up to get some water and I sat down thinking all I needed was water. Then it got worse and I felt the room spinning and I thought I was going to faint so I went to the restroom and I throw up all my food. As soon as I did that I immediately felt better. But I was just wondering why I had gotten like that. I’ve never had morning sickness my pregnancy. And I am in 2nd trimester. I’m 22weeks. Could it be my blood pressure went low? Or the food I ate ? I told my doctor but he brushed it off as if it was morning sickness. What do you ladies think?