Synopsis: | Do not catch exceptions you are not supposed to know about |
Language: | C++ |
Severity Level: | 9 |
Category: | Error Handling |
Description: |
Catch an exception only when you actually can do something about the problem that caused it or at least leave the application in a consistent state. Else throw it along and let someone up the call stack handle it. |
Literature References: |
StackOverflow |