Cldr.validate_backend

You're seeing just the function validate_backend, go back to Cldr module for more information.
Link to this function

validate_backend(backend)

View Source

Specs

validate_backend(backend :: atom()) ::
  {:ok, atom()} | {:error, {atom(), binary()}}

Validates that a module is a CLDR backend module.

Arguments

  • backend is any module

Returns

  • {:ok, backend} is the module if a CLDR backend module or

  • {:error, {exception, reason}} if the module is unknown or if the module is not a backend module.

Examples

iex> Cldr.validate_backend MyApp.Cldr
{:ok, MyApp.Cldr}

iex> Cldr.validate_backend :something_else
{:error,
 {Cldr.UnknownBackendError,
  "The backend :something_else is not known or not a backend module."}}