|
-
November 14th, 2006, 01:02 AM
#16
Re: Silly #define Question
 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)
{
//...
}
Kevin Hall
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|