That sounds terrible! My hubby felt that bad on the day he had three finals. He went to one, almost passed out and had to leave class several times. He ended up rescheduling the other two. Thank goodness he had understanding professors. We figured out later that it was food poisoning.
I'm sorry you're feeling bad. Hope you feel better soon!