multiple exception handling in c++