Troiana Prompt Library · Claude · Development

Work through an error handling strategy

Decide which failures to retry, surface, or swallow, and why.

What this prompt helps you do

A strategy per failure class covering retry, backoff, surfacing, and logging, with the reasoning for each.

When to use it

Error handling has grown case by case and is now inconsistent and partly wrong.

What to prepare

The goal, relevant source material, constraints, examples, and the decision or action this should support.

How to get a strong result

Distinguish transient from permanent failures; retrying a permanent failure turns one error into an outage.

How to use this prompt

Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.

Browse all ChatGPT, Claude, and Codex prompts