The following code makes no sense.
void c() throw (XA) {
throw XB();
throw XA();
}
I specify to function c that it should throw an XA class but it still throws an XB and that XB is caught in the main. What is the point of that "throw (XA)" next to the function declaration?