I understand that there is an exception throwing mechansim in C++. I was experimenting with it the other day - but can I use it to check for random exceptions, i.e. "An unexpected error has occured."? Because otherwise I'd have to have an idea of every error that could ever happen...
As I cannot create a random error, I'm asking you guys about the theory of it. What does it do?