1 Persistent vomiting despite the change in diet can be an indication of some inflammatory bowel disease which needs to be treated by a vet. 2  Indigestion: One of the most common causes of a dog throwing up white foam is an upset stomach.