General
599 installs
python-error-handling
by wshobson/agents
Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic,…
Skill content
Python Error Handling Build robust Python applications with proper input validation, meaningful exceptions, and graceful failure handling. Good error handling makes debugging easier and systems more reliable. When to Use This Skill - Validating user input and API parameters - Designing exception hierarchies for applications - Handling partial failures in batch operations - Converting external data to domain types - Building user-friendly error messages - Implementing fail-fast validation patterns Core Concepts 1. Fail Fast Validate inputs early, before expensive operations. Report all validation errors at once when possible.