smithery.ai

m13-domain-error

Mastering C++ Domain Errors: Exception Hierarchies, System Errors, and Expected.

First seen Mar 22, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 881 B
  • docs SUMMARY.md 104 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

C++ Domain Errors

Core Question

Who catches this?

  • Exception: Inherit std::runtime_error.
  • System Error: std::error_code (OS codes).

Thinking Prompt

  1. Is it a Domain Event?

- InsufficientFunds is an exception type.

  1. Does it have context?

- "File not found" needs "Which file?". - struct FileError : std::runtime_error { std::filesystem::path p; ... }

Quick Reference

Pattern Use Case
std::runtime_error Base for most failures.
std::logic_error Bug (violation of precondition).
std::expected Visible failure path.