What should I do?

Last night my 10 month old threw up the little food we gave him. Which I just figured was to heavy of a meal for him. Showered him and gave him formula but he threw that up too. Since it got everywhere I showered him again. He threw up 2 more times. Once was water I had just gave him then I tried to give him some medication and that came up too with some water I suppose. So he eventually fell asleep. This morning he woke up hungry so he drank his formula but that came up too. He really only wants to drink water. I was able to give him some gerber food the 4 Oz but just ate 3oz I didn't want to push it besides seemed like he was going to vomit if I continued due to the faces he made. I got him pedialyte but he only drank maybe 3oz since we got it for him but will not take more. He's only had 2 wet diapers from this morning to now night time. But the diaper isn't even full. He also drools like crazy due to teething but he has not drool today. He will not take his milk which once he tastes it he'll be quick to spit the nipple out and gag. Should i tke him to the er? He is extra fussy but is as active as any other day.