---
library: "bootstrap"
slug: "Exception"
name: "Exception"
ref: "Exception#ae94"
hash: "sema:Exception#mh:SHA-256:ae9485039008abed9587e74c05a8c31c37d9a8f70347a11c0630fe87673fb7bb"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Exception"
---

# Exception

Runtime anomaly signal

Infrastructure · Data Structures

## Mechanism

A signal indicating that the standard execution flow has encountered a critical anomaly or invalid [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md). Must be handled explicitly by a [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) or [FailClosed](https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.md) policy to prevent system corruption.

## Invariants

- Classifies the anomaly by `error_code`.
- Must be handled by [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) or [FailClosed](https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.md), never merely observed.

## Failure modes

- Swallowed: the signal is caught and discarded, so the invalid [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) continues unhandled.
- Over-broad code: one `error_code` covers unrelated anomalies, so no handler can dispatch on it.

## Where this came from

—

## Builds on

- [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) (references)
- [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) (references)
- [FailClosed](https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.md) (references)

## Used by

- [TaskLifecycle](https://semahash.org/vocabularies/bootstrap/patterns/TaskLifecycle.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Exception#ae94
- Hash: sema:Exception#mh:SHA-256:ae9485039008abed9587e74c05a8c31c37d9a8f70347a11c0630fe87673fb7bb

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Exception
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Exception.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
