26 lines
456 B
Markdown
26 lines
456 B
Markdown
# Error Handling
|
|
|
|
Handle errors gracefully in CQRS applications.
|
|
|
|
## Best Practices
|
|
|
|
### ✅ DO
|
|
|
|
- Use specific exception types
|
|
- Implement retry logic
|
|
- Log errors with context
|
|
- Use dead letter queues
|
|
- Handle validation errors
|
|
|
|
### ❌ DON'T
|
|
|
|
- Don't swallow exceptions
|
|
- Don't retry indefinitely
|
|
- Don't skip error logging
|
|
- Don't ignore validation
|
|
|
|
## See Also
|
|
|
|
- [Best Practices Overview](README.md)
|
|
- [Troubleshooting](../troubleshooting/README.md)
|