Current section

Files

Jump to
ex_cldr_currencies lib cldr exception.ex
Raw

lib/cldr/exception.ex

defmodule Cldr.CurencyNotSavedError do
@moduledoc """
Exception raised when an attempt is save a new currency
to the ETS table is not successful.
"""
defexception [:message]
def exception(message) do
%__MODULE__{message: message}
end
end
defmodule Cldr.CurencyNoDisplayName do
@moduledoc """
Exception raised when there is no display
name for a given currency.
"""
defexception [:message]
def exception(message) do
%__MODULE__{message: message}
end
end
defmodule Cldr.CurrencyNotLocalized do
@moduledoc """
Exception raised when no localised data exists
for a currency in the requested locale.
"""
defexception [:message]
def exception(message) do
%__MODULE__{message: message}
end
end
defmodule Cldr.CurencyAlreadyDefined do
@moduledoc """
Exception raised when the new currency code
is already defined.
"""
defexception [:message]
def exception(message) do
%__MODULE__{message: message}
end
end