# `AshVault.Errors.ProviderUnavailable`
[🔗](https://github.com/jakeschurch/ash_vault/blob/main/lib/ash_vault/errors.ex#L192)

Raised when the key provider could not be reached or failed for a transient reason.

Unlike the other errors in this namespace, this one is generally retryable.

The one reason that is **not** retryable is `{:not_started, app}`: an OTP application
the provider needs is not running. That is a deployment fault in the *host*
application, the backend was never contacted, and no amount of retrying will start an
application. It is reported here, rather than as a bare transport failure, because the
two are otherwise indistinguishable — see `message/1`.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshVault.Errors.ProviderUnavailable{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  path: term(),
  provider: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.AshVault.Errors.ProviderUnavailable` without raising it.

## Keys

- :provider
- :reason

---

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