skills/smithery.ai/m06-error-handling

m06-error-handling

SKILL.md

C++ Error Handling

Core Question

Is this error recoverable?

  • Yes (Local): std::expected or return code.
  • Yes (Distant): Exceptions (throw).
  • No (Bug): assert or std::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).

Thinking Prompt

Installs
2
First Seen
Mar 30, 2026