ha, are you sure it was throw up, and not just food he/she had stored in his/her cheeks?
Sometimes when hamsters find a nice little spot (even in a ball or their wheel), they sometimes unload some seeds and food they stored in their pouches, and eat some.
Sometimes you can visibly see that the hamster has stored a lot of food in their cheeks, and sometimes it's harder to tell.
It's a natural behavior for hamsters to store food this way and I've had this happen as well.
Sometimes when hamsters find a nice little spot (even in a ball or their wheel), they sometimes unload some seeds and food they stored in their pouches, and eat some.
Sometimes you can visibly see that the hamster has stored a lot of food in their cheeks, and sometimes it's harder to tell.
It's a natural behavior for hamsters to store food this way and I've had this happen as well.