It's probably just something bad he ate, but you should consider seeing a vet if things aren't cleared up by tonight. Sadly this is how it all started with my yorkie Minnie (RIP

)about 4 weeks ago.
Is your yorkie dehydrated? Is he able to keep water down? Pull the skin on his back up and if it sticks together it's a sign that he's dehydrated.