# Error Boundary

> Detect invalid state early, fail fast for programmer errors, fail safe for recoverable runtime faults, fail secure for security-sensitive failures, and return typed errors.

Record: `algorithms:error-boundary`
Kind: algorithm
Canonical: https://banes-lab.com/ontology/algorithms#algorithms-error-boundary
Closure: https://banes-lab.com/json/records/algorithms/error-boundary/closure

Listed in [Algorithm contracts](https://banes-lab.com/api/records/algorithms.md), after [Verification Fitness](https://banes-lab.com/records/algorithms/verification-fitness.md) and before [Resilience Control](https://banes-lab.com/records/algorithms/resilience-control.md).

## Domain

- [Architecture](https://banes-lab.com/records/algorithms-domain/architecture.md)

## Tier

- [leaf](https://banes-lab.com/records/vocabulary/domain-tier-leaf.md)

## Composed by

- [Governed Construction Boundary](https://banes-lab.com/records/algorithms/governed-construction-boundary.md)

## Math type

- [Logic](https://banes-lab.com/records/reasoning/math-type-logic.md)

## Force

- [Contract compatibility](https://banes-lab.com/records/force/contract-compatibility.md)
- [Modularity](https://banes-lab.com/records/force/modularity.md)
- [Resilience recovery](https://banes-lab.com/records/force/resilience-recovery.md)
- [Security governance](https://banes-lab.com/records/force/security-governance.md)

## Linked from

- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
- [CSS cascade](https://banes-lab.com/ontology/algorithms/algorithms-domain-css-cascade.md)
- [The mathematics](https://banes-lab.com/ontology/reasoning/the-mathematics.md)
- [Domain tiers](https://banes-lab.com/ontology/schema/the-vocabulary-domain-tier.md)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)
