Cldr.unknown_currency_error
You're seeing just the function
unknown_currency_error
, go back to Cldr module for more information.
Specs
Returns an error tuple for an invalid currency.
Arguments
currency
is any currency code not returned byCldr.known_currencies/0
Returns
{:error, {Cldr.UnknownCurrencyError, message}}
Examples
iex> Cldr.unknown_currency_error("invalid")
{Cldr.UnknownCurrencyError, "The currency \"invalid\" is invalid"}