# `Minga.Extension.Instance.CleanupFailure`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga/extension/instance/cleanup_failure.ex#L1)

Typed failed-cleanup phase with its authority-owned retry context.

# `t`

```elixir
@type t() :: %Minga.Extension.Instance.CleanupFailure{
  reason: term(),
  retry: Minga.Extension.Instance.StopContext.t()
}
```

# `new`

```elixir
@spec new(term(), Minga.Extension.Instance.StopContext.t()) :: t()
```

Captures a cleanup failure and resumable stop context.

# `replace_reason`

```elixir
@spec replace_reason(t(), term()) :: t()
```

Replaces the externally reported reason after projection failure.

---

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