.cursorrules: Enforce Error Handling Discipline by Layer
A drop-in .cursorrules block that makes Cursor handle errors differently at the boundary, service, and infrastructure layers.
The Prompt
Already a member? Sign in.
Related prompts
.cursorrules: Enforce Test-First Discipline Without the Lecture
A .cursorrules block that makes Cursor refuse to write implementation code until the test exists and fails for the right reason.
.cursorrules: Forbid Silent Catches and Swallowed Errors
A .cursorrules block that makes Cursor refuse to write try/catch blocks that hide failure from the caller.
Extract Common Error Handling Anti-patterns
Find catch blocks that swallow errors, log-only failures, and missing error recovery logic across your codebase.
.cursorrules: Enforce Dependency Direction Across Module Boundaries
Add a rule that blocks any import violating your intended layer architecture before it gets normalized into the codebase.
Pairs with, from the journal
