AshVault.Errors.ProviderUnavailable exception (AshVault v0.2.0)

Copy Markdown View Source

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.

Summary

Functions

exception(args)

@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