python-error-handling

Installation
SKILL.md

Python Error Handling

Overview

Errors are values, not exceptions. Use Result[T, E] from rusty-results for expected failures. Exceptions mean bugs.

Decision Table

Situation Use
File not found, network error, invalid input Result[T, E]
User provided bad data Result[T, E]
Third-party library raised Catch at boundary -> Result[T, E]
Invariant violated (should never happen) raise exception
Invalid program state (bug) raise exception

Pattern

Installs
1
First Seen
Mar 8, 2026
python-error-handling — quick-brown-foxxx/coding_rules_python