m13-domain-error
CommunityMaster C++ domain errors with robust handling.
Software Engineering#exceptions#error-handling#cpp#domain-errors#runtime_error#std::error_code#expected
Author13eholder
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Domain errors in C++ can become opaque without clear structure. This guide helps you design exception hierarchies, integrate std::error_code for system errors, and adopt explicit failure paths like std::expected where appropriate.
Core Features & Use Cases
- Structured exception hierarchies based on std::runtime_error derivatives for domain errors.
- Integration of system errors via std::error_code to represent OS or library failures.
- Guidance on using optional/expected patterns to model recoverable errors and to provide context.
- Real-world use: library APIs that report precise error categories and actionable messages.
Quick Start
Implement a FileError struct derived from std::runtime_error and propagate an associated std::error_code to distinguish domain failures from system errors.
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: m13-domain-error Download link: https://github.com/13eholder/Modern-Cpp-Skills/archive/main.zip#m13-domain-error 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.