# Inconsistent Error Model

Record: `arch:inconsistent-error-model`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: model_governance
Canonical: https://banes-lab.com/ontology#arch-inconsistent-error-model

## Repair

- Refactored by: typed_result, standard_error_contract, [error_boundary](https://banes-lab.com/records/algo/error-boundary.md), normalize_failure_modes
- Detected by: same_error_returns_null_or_throws, mixed_error_shapes, string_errors, partial_success_without_contract
- Violated by: Mix exceptions, nulls, booleans, strings, partial objects, console logging, and silent failure for the same error class.

## referenced-by

- [Semantic Consistency](https://banes-lab.com/records/arch/semantic-consistency.md)
