My Daisy will Throw up for no reason. We give her people Pepcid AC and keep her full of treats several times a day, but she only heaves when her tummy is empty.
Gizmo throws up when he's eaten something forbidden.
You can give them Pepto Bismol or Imodium. I have a special syringe to give them the liquid. About 1 tsp for my 16 lbs dogs.
The soft diet they get when they are sick is Boiled Hamburger (full fat kind) or Chicken with the skin (they need the fat) with cottage cheese and boiled rice. Rice must be the long grain kind - not Uncle Ben's or Minute Rice. They need the starch. Equal parts. Or also make 2 cups of rice and throw in a 4 eggs while making the rice and then mix with cottage cheese (about 1 cup. Can add garlic but never ever onion.