鼎味肉市DESIGN ATELIER
← 资料目录docs/rules/error-handling.md阅读原文

Error Handling Rule


rule_id: R-ERR-01 category: Engineering status: locked owner: Project Manager / Architect scope: exceptions, error codes, user messages, logging, retry, failure paths

1. Rule

Errors must be classified, observable, recoverable when possible, and testable.

Do not swallow exceptions. Do not expose internal details to users or callers.

2. Severity

Level Meaning Action
P0 data loss, security incident, core path down block release, fix immediately
P1 core feature unavailable or wrong fix before release
P2 non-core issue with workaround track and fix, do not fake closure
P3 UX/copy/low-risk issue schedule later

3. Hard Rules

4. Frontend / Caller Rules

5. Evidence