Agent skill

data-pipeline-processor-error-handling

Sub-skill of data-pipeline-processor: Error Handling.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/development/data-pipeline-processor/error-handling

SKILL.md

Error Handling

Error Handling

Common Errors

Error Cause Solution
UnicodeDecodeError Wrong encoding Use DataReader with encoding fallback
KeyError Missing column Check column names in config
ValueError Type conversion failed Use errors='coerce' or validate first
MemoryError File too large Use chunked reading
FileNotFoundError Input file missing Verify file path

Error Template

python
def safe_pipeline_run(config: PipelineConfig) -> dict:
    """Run pipeline with comprehensive error handling."""
    try:
        # Validate input exists
        if not Path(config.input_path).exists():
            return {'status': 'error', 'stage': 'input', 'message': 'File not found'}

        pipeline = DataPipeline(config)
        return pipeline.run()

*See sub-skills for full details.*

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results