python-error-handling - Python error handling and validation patterns
Provides Python error handling patterns including input validation, custom exception hierarchies, and batch partial failure handling.
Tags
Updated: 2026-09-23Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Validate API parameters early
- Convert strings to domain types
- Validate models with Pydantic
- Define custom domain exceptions
- Chain exceptions for debugging
- Handle partial failures in batches
- Report batch operation progress
Inputs
- API parameters and user inputs
- Batch item lists
- Progress callback functions
Outputs
- Validated domain objects
- Custom exception instances
- Batch execution results
Requirements
- Python runtime environment
- pydantic library
- httpx library
