Home Comments

recommand IceUtil::Exception commpatible STL !

more time, we program like bellow:

try {
o->Func();
} catch( const std::exception & e ) {
// do something ...
}

I must write additional code for IceUtil::Exception,
It feel not good.

try {
o->Func();
} catch( IceUtil::Exception & e ) {
// :-(
} catch( const std::exception & e ) {
// do something ...
}

Can IceUtil::Exception derived by std::exception?
Thanks.

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Off the top of my head, I can't think of any reason why we should not do this. We will discuss this internally.
Sign In or Register to comment.