m06-error-handling
CommunityMaster C++ error handling with robust patterns.
Author13eholder
Version1.0.0
Installs0
System Documentation
What problem does it solve?
C++ error handling is often complex, fragmented, and easy to mishandle, leading to brittle code and subtle bugs. This Skill provides a cohesive set of patterns and decisions to make error handling explicit, safe, and maintainable across codebases.
Core Features & Use Cases
- Central guidance on when to use exceptions, error codes, std::optional, and std::expected.
- Clear strategies for noexcept and RAII to ensure resource safety during errors.
- Real-world scenarios across library boundaries and application code to reduce silent failures and improve debuggability.
Quick Start
Write a small function that returns std::optional<T> on failure and refactor it to use std::expected<T, E> with proper noexcept where appropriate.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: m06-error-handling Download link: https://github.com/13eholder/Modern-Cpp-Skills/archive/main.zip#m06-error-handling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.