This template is used only when enable_error_semantics is explicitly enabled.
It should not be produced by default.
Use this page to document error codes, failure semantics, fallback behavior, retry points, timeout behavior, and compensation paths across an integration flow.
Typical goals:
- clarify which failures are visible in code
- clarify where error codes are defined or translated
- clarify retry, degrade, and compensation logic
- reduce ambiguity in cross-team failure debugging
Use this page only when one of these is true:
- the user explicitly enabled
enable_error_semantics - production issues depend on failure-path understanding
- multiple layers may translate or swallow errors
Recommended sections:
- error semantics scope
- error code table
- failure path notes
- retry / fallback / compensation notes
- unresolved failure gaps
Recommended table:
| error code / signal | source layer | meaning | consumer-side handling | retry/degrade/compensation | evidence level | code locations |
| --- | --- | --- | --- | --- | --- | --- |Possible error code / signal values:
- business error code
- HTTP status
- exception type
- callback failure signal
- MQ consumption failure
- timeout or circuit-breaker signal
Useful items to record:
- where an error is thrown
- where an error is caught or wrapped
- where an error code is translated
- where fallback/default values are returned
- where failure is logged but not surfaced
Useful items to record:
- retry policy or retry trigger
- degrade or fallback path
- compensation task or callback
- timeout handling
- dead-letter or manual intervention clues
Do not infer business meaning for an error code unless the code, enum, message constant, or handling branch supports it.
If an error is visible but the final consumer-side behavior is not visible:
- record the visible failure point
- mark downstream handling as unresolved
- keep the evidence level aligned with the visible code
Use phrases like:
Exception source visibleError code translated in adapterFallback path confirmed in codeRetry behavior partially visibleConsumer-side handling unresolved in current scope