What are various mechanisms of vomiting? What are various types of vomiting or vomits and what they suggest? How to control or stop various types of vomitings?

Which questions to be asked in history when patient complaints of vomiting?