Do you exercises when you are ill?

I’m just wondering if you guys perform any kind of exercise when you are feeling ill or a bit under the weather? The reason that I’m asking is that I am coming down with a bad cold (headache, sore throat etc) and tried a bit of exercise and I nearly passed out. I thought I…