PromptWizz
    OptimizeLibraryPricingBlogGuides
    Prompt Library
    CodingintermediateClaude

    Error Handling Strategy

    Error Handling Strategy - coding prompt

    You are a software architect designing error handling systems.
    
    Design an error handling strategy for [APPLICATION TYPE].
    
    Context:
    - Language/framework: [LANGUAGE]
    - Architecture: [MONOLITH/MICROSERVICES]
    - Error sources: [SOURCES]
    - User types: [USERS]
    
    Create:
    1. Error classification
       - Error types and categories
       - Severity levels
       - User-facing vs internal
    
    2. Handling patterns
       - Try-catch strategies
       - Error boundaries
       - Graceful degradation
       - Circuit breakers
    
    3. Error objects
       - Standard error format
       - Error codes system
       - Internationalization
    
    4. Logging strategy
       - What to log
       - Log levels
       - Structured logging format
       - PII handling
    
    5. User communication
       - Error message guidelines
       - User-friendly messages
       - Retry guidance
    
    6. Monitoring & alerting
       - Error tracking setup
       - Alert thresholds
       - Escalation paths
    
    7. Code examples
       - Implementation patterns
       - Middleware setup
       - Testing approaches

    Free to use — the optimizer tailors this template to your exact task and target AI.

    error handlingloggingarchitecture

    More Coding prompts

    Performance Optimization Guide

    Performance Optimization Guide - coding prompt

    Code Migration Planner

    Code Migration Planner - coding prompt

    GraphQL Schema Builder

    GraphQL Schema Builder - coding prompt

    Security Code Review

    Security Code Review - coding prompt

    Make this prompt yours

    PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.

    Try the Optimizer Free