Hi,
I really like the fact that Ice v3.2 exceptions derive from std::exception -- in a bunch of places I have catch-all-and-generate-error-message blocks, and the extra catch block for Ice::Exception makes it ugly.
Unfortunately I think I still need the extra block to generate meaningful error messages. Compare the following:
(a)
catch ( Ice::Exception &e ) {
cout << e << endl;
}
(b)
catch ( std::Exception &e ) {
cout << e.what() << endl;
}
(a) produces:
Network.cpp:662: Ice::ConnectionRefusedException:
connection refused: Connection refused
while (b) produces:
N3Ice26ConnectionRefusedExceptionE
What's going on here? Am I missing something?
Thanks,
Alex

Reply With Quote