Vomiting occurs after the food has made it to the stomach. Some common causes for vomiting are consuming food that is inedible, overeating or eating too quickly, stress, or having worms. ... If the vomit is clear and frothy, your dog might have a stomach problem such as acute gastritis or pancreatitis.