Help!! sick dog question

Nova

My dog eats everything the can run away with, he once stole my phone went to his bed and chowed down on it!! we normally grab what ever random thing he decides to pick up and put it out of reach. to day when I got home I noticed he did a bad potty with is not like him I put him on this bad for the bad potty and he started to throw up and it smelled like poop which I never experienced befor. hes be throwing up for the last hour. I gave him water thinking he was dehydrated. any one have this happen I dont know if he ate something while we where out or what