It's been a while since I've used Visual C++ and I'm getting an exception
from an unknown source. I'm writing Java JNI code, calling Java from C++. Is
there any way to get more information about what's getting thrown? I've
tried to catch it with a variety of catch clauses with all sorts of types.
The only catch that works is catch(...). My catches look like:
catch(const string &msg) {
cerr << msg.data() << endl;
}
catch(const char * msg) {
cerr << msg << endl;
}
catch(CException msg) {
cerr << msg.ReportError() << endl;
}
catch(CException *msg) {
cerr << msg->ReportError() << endl;
}
catch(int msg) {
cerr << msg << endl;
}
catch(const runtime_error &err) {
cerr << err.what() << endl;
}
catch(const logic_error &err) {
cerr << err.what() << endl;
}
catch(const bad_exception &err) {
cerr << err.what() << endl;
}
catch(const exception &err) {
cerr << err.what() << endl;
}
catch(...) {
cerr << "unknown exception" << endl;
}