This example show how to handle multiple throw in one catch statement.
#include <iostream> void fun(int test) { try{ if(test==0) throw test; if(test==1) throw 'a'; if(test==2) throw 123.23; } catch(...) { cout << "Caught One!\n"; } } int main() { fun(0); fun(1); fun(2); return 0; }