Packages

Ecto's missing universal foreign key

Retired package: Bugs are bad. This version had a few

Current section

Files

Jump to
pointers lib not_found.ex
Raw

lib/not_found.ex

defmodule Pointers.NotFound do
@moduledoc "We could not find the requested object"
defexception [:message, :code]
@type t :: %Pointers.NotFound{
message: binary,
code: 404,
}
@doc "Creates a new NotFound"
@spec new() :: t
def new(), do: %__MODULE__{message: "Not Found", code: 404}
@doc false
def exception(_), do: new()
end