Trogon.Proto.Env.LoadError exception (Trogon.Proto v0.12.0)

Copy Markdown View Source

Raised when one or more environment variables fail to load.

Aggregates every failure encountered while loading a configuration so the caller can fix all problems at once instead of one per run.

Summary

Types

error()

@type error() :: %{
  env_var: String.t(),
  field: atom(),
  reason: :missing | {:invalid, String.t()}
}

t()

@type t() :: %Trogon.Proto.Env.LoadError{__exception__: true, errors: [error()]}