How serious is throwing up for a long time with diarrhea.?

Should be evaluated. Sorry to hear that you are having these symptoms. You don't mention what a 'long time' is but any persistent vomiting and/or diarrhea requires a workup to determine the cause. You should see your physician about these symptoms.