okay - I notice one thing, which is weird for me - but someone wiser may know
why.
With the following code, the SAXParseException IS caught.
try {
parser->parse(xml_src);
}
catch(const SAXParseException& e) {
error = XMLString::transcode( e.getMessage() );
}
catch(.... ) {
//NO we do NOT get here.
}
However, with this code, the Exception is NOT caught even though SAXException
is SAXParseException's base:
try {
parser->parse(xml_src);
}
catch(const SAXException& e) {
error = XMLString::transcode( e.getMessage() );
}
catch(.... ) {
// YES we get here.
}
A better c++ coder than I may be able to shed some interesting light on this.