prompt

Error Handling Strategy

Design consistent, robust error handling for an app.

Updated June 2026
The prompt
Design an error handling strategy for {{app_or_feature}} in {{stack}}. Recommend how to distinguish recoverable from fatal errors, where to catch versus let errors propagate, consistent error types and messages, what to log versus show the user, retries and fallbacks where appropriate, graceful degradation, and how to avoid both swallowing errors silently and crashing on every hiccup. Make failures predictable and debuggable, and note the most common error-handling anti-pattern to avoid.
Did it work? Rate this prompt

Variables

App or feature
Stack

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code