Even if your dog is just throwing up, however, a vet appointment is still likely warranted. The simple matter, however, that sometimes dogs just vomit. If your vet rules out the more serious conditions, They will likely offer a non-specific treatment for vomiting , which involves not giving your dog food for 24-48 hours and water for 24 hours (assuming your dogs fluid levels are okay).