Bile or yellow/foamy appearance: This type of vomit could be caused by a hairball, but it also can point to a kidney problem, infection, or endocrine issue. If this type of vomiting occurs frequently a vet visit is also recommended.