Cldr.validate_backend
You're seeing just the function
validate_backend
, go back to Cldr module for more information.
Specs
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."}}