Packages

Helpful modules meant to extend the Elixir standard library, inspired by the Ruby gem `active_support`.

Current section

Files

Jump to
passive_support lib errors nonexistent_atoms.ex
Raw

lib/errors/nonexistent_atoms.ex

defmodule PassiveSupport.NonexistentAtoms do
defexception [:message]
def exception(args) do
message = IO.chardata_to_string [
"No atoms exist for the values ",
inspect(args[:expected])
]
%__MODULE__{message: message}
end
end