A yellow look to a dogs eyes or skin could be a kidney problem. If he is sick and throwing up it could also be something he ate that can't be passed through his digestive tract. Try to get your pet to a veterinarian as soon as possible.
There is a serious problem going on. They could have ate something that made them sick or a there's a problem with a vital organ. Take them to your vet or a pet emergency hospital asap.