When a dog is throwing up bile, its a sign of a number of conditions that affect the digestive system, including inflammatory disease, ulcers, parasite infections, and certain cancers. In each of these cases, the underlying condition needs to be diagnosed and treated by a veterinarian to relieve the vomiting.