Error Handling Pattern Generator
Designs a comprehensive error handling strategy with custom error types, propagation rules, and user-facing messages.
Design an error handling pattern for {{application_type}}. Language: {{language}}. Scenarios: {{error_scenarios}}. Design: (1) error hierarchy with custom error types, (2) error codes namespace (module.category.specific), (3) error propagation rules (which to catch, which to let bubble), (4) logging strategy per error level, (5) user-facing error messages (safe vs detailed), (6) retry policies with exponential backoff, (7) circuit breaker thresholds, (8) error response format for APIs. Include c...