Tag: error-handling
Browse 12 practical software engineering resources tagged with "error-handling". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving error-handling. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.
Error Handling in Production
Error handling determines how gracefully a system fails. Production code must distinguish between recoverable and fatal errors, provide useful context, log appropriately, and avoid exposing internal details to users.
The resources below cover exceptions, result types, retries, circuit breakers, error boundaries, and user-friendly messages. Each recipe helps you build error paths that are predictable and easy to operate.
Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.
Handle API Errors with RFC 7807 and HTTP Status Codes
Patterns for consistent, predictable API error handling across multiple languages and frameworks.
JavaScript Fetch Retry Logic with Exponential Backoff
Retry failed HTTP requests in JavaScript with exponential backoff
Structured GraphQL Errors with Extension Codes
Implement structured error handling in GraphQL with custom error classes, extension codes, and...
Dead Letter Queues
Handle failed messages gracefully with dead letter queues, retry policies, and poison pill...
Configure Dead-Letter Queues in RabbitMQ for Failed Messages
Set up dead-letter queues and exchanges in RabbitMQ with TTL expiry, max length limits,...
LLM Fallback Pattern
Fall back to alternative LLM providers or models when the primary fails. Handle rate limits,...
Dead Letter Channel Pattern
Route unprocessable messages to a separate dead letter queue for inspection and replay. Prevent...
GraphQL Error Extension Pattern
Attach structured metadata to GraphQL errors using extension codes for predictable client-side...
GraphQL Mutation Validation Pattern: Centralized Input Validation
Centralize GraphQL mutation validation with reusable rules, custom scalars, and structured errors....
API Error Handling Guideline
A guideline for standardizing error responses, status codes, and error payloads across REST and...
Dead Letter Queue Runbook
Runbook for handling and replaying dead letter queue messages in Kafka and RabbitMQ: DLQ setup,...
API Error Response Template
A reusable template for consistent, informative, and developer-friendly API error responses that...