m06-error-handling
SKILL.md
C++ Error Handling
Core Question
Is this error recoverable?
- Yes (Local):
std::expectedor return code. - Yes (Distant): Exceptions (
throw). - No (Bug):
assertorstd::terminate.
Error → Design Question
| Issue | Design Question |
|---|---|
| Uncaught Exception | Did you forget to catch, or throw in noexcept? |
| Silent Failure | Did you ignore a return code? (Use [[nodiscard]]). |
| Destructor Throw | Never throw from destructor (std::terminate). |