Current section

Files

Jump to
ex_marshal lib ex_marshal errors encode_error.ex
Raw

lib/ex_marshal/errors/encode_error.ex

defmodule ExMarshal.Errors.EncodeError do
defexception [:reason]
def message(%__MODULE__{} = exception) do
case exception.reason() do
{:not_supported, term} ->
"the following type is not supported: #{inspect(term)}"
end
end
end