Hope she is feeling better, if she was throwing up foam, as others have said it is an empty stomach she is being sick on. She could have a sickness bug, but it could just be from being really hungry alone that's making be sick.
Light, bland meals such as chicken or white fish and rice are good for upset tummies.