ExAzureCore.Auth.Errors.FederationError exception (ex_azure_core v0.3.0)

Copy Markdown

Error for federated token provider operations.

Used when fetching tokens from external identity providers (AWS Cognito, etc.) fails or when an unknown provider is specified.

Summary

Types

t()

@type t() :: %ExAzureCore.Auth.Errors.FederationError{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  provider: atom(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  type: :token_fetch_failed | :unknown_provider,
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %ExAzureCore.Auth.Errors.FederationError{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  provider: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  type: term(),
  vars: term()
}

Create an Elixir.ExAzureCore.Auth.Errors.FederationError without raising it.

Keys

  • :type
  • :provider
  • :reason