Stomach virus while pregnant?

I've been up for the past 5 hours puking every 20 minutes. I caught a stomach virus from my brother. I can't keep anything down not even water. Every time I drink some water I instantly throw it back up. Worried I'm going to get dehydrated. Thoughts, experiences? Just worried for my baby I am 22 weeks