# `BB.Error.Severity`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/error/severity.ex#L5)

Protocol for determining error severity.

All error types in the BB ecosystem must implement this protocol.
Implementation is enforced at compile time via the `use BB.Error` macro.

## Severity Levels

- `:critical` - Immediate safety response required. For `:safety` class errors,
  this triggers automatic disarm.
- `:error` - Operation failed. May retry or degrade gracefully.
- `:warning` - Unusual condition, operation continues.

# `t`

```elixir
@type t() :: :critical | :error | :warning
```

# `severity`

```elixir
@spec severity(t()) :: t()
```

Returns the severity level for this error.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
