
Originally Posted by
exterminator
So, you are saying you expected the same exception handler at all places apart from the std::exception one? This doesn't sound very good an means you would be having quite a lot of unneeded catch handlers. std::exception is okay because, all standard and your custom exceptions would derive from them.
All our exceptions do derive from std::exception.
The problem was that sometimes we needed to add more visibility. For example:
Code:
try
{
//...
}
catch (CppLibException& e) // derived from std::exception
{
//...
}
catch (std::exception& e)
{
//...
}