If your dog suddenly vomits, it could be the simple result of eating too fast, exercise straight after eating or motion sickness. It could also be an indication of stomach problems such as gastritis, brought on by eating spoiled foods, garbage or toxins. However, it could also be a sign of infection or disease.