Packages

Splode helps you deal with errors and exceptions in your application that are aggregatable and consistent.

Current section

Files

Jump to
splode lib splode unknown.ex
Raw

lib/splode/unknown.ex

defmodule Splode.Error.Unknown do
@moduledoc "The default top level unknown error container"
use Splode.ErrorClass, class: :unknown
@impl true
def exception(opts) do
if opts[:error] do
super(Keyword.update(opts, :errors, [opts[:error]], &[opts[:error] | &1]))
else
super(opts)
end
end
end