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 keys_not_found.ex
Raw

lib/errors/keys_not_found.ex

defmodule PassiveSupport.KeysNotFound do
defexception [:message]
def exception(args) do
message = IO.chardata_to_string [
"Expected to find keys ",
inspect(args[:expected]),
" but only found keys ",
inspect(args[:actual])
]
%__MODULE__{message: message}
end
end