If your dog is throwing up yellow bile and not eating or drinking, it is important to take him or her to the veterinarian as soon as possible. There are a number of potential causes for this, including poisoning, a stomach bug, or liver disease. The vet will be able to perform tests to determine the cause of the problem and prescribe appropriate treatment. In the meantime, you can try to get your dog to drink some water or broth in small amounts and offer bland food such as boiled chicken or rice.