# Exception Control Flow

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

## Repair

- Refactored by: return_result_type, use_option_type, validate_before_call, branch_explicitly
- Detected by: try_catch_for_lookup_absence, exceptions_in_hot_loop, catch_chooses_normal_path
- Violated by: Use exceptions for expected branching, normal absence, validation alternatives, or loop control.

## referenced-by

- [Error Handling](https://banes-lab.com/records/arch/error-handling.md)
