Localize.DependencyRequiredError exception (Localize v1.3.0)

Copy Markdown View Source

Exception returned when an operation needs a companion package that is not among the application's dependencies.

Localize delegates a few operations to sibling packages that depend on Localize in turn, so it cannot depend on them back. Those operations resolve the module at runtime and return this exception when it is absent, naming the package to add.

Summary

Types

t()

The package that is required, and the operation that needs it.

Types

t()

@type t() :: %Localize.DependencyRequiredError{
  __exception__: term(),
  operation: String.t(),
  package: String.t()
}

The package that is required, and the operation that needs it.