Packages

A resource declaration and interaction library. Built with pluggable data layers, and designed to be used by multiple front ends.

Retired package: Renamed - renamed to ash

Current section

Files

Jump to
ash_core lib ash error invalid.ex
Raw

lib/ash/error/invalid.ex

defmodule Ash.Error.Invalid do
@moduledoc "The top level invalid error"
use Ash.Error
def_ash_error([:errors], class: :invalid)
defimpl Ash.ErrorKind do
def id(_), do: Ecto.UUID.generate()
def code(_), do: "invalid"
def message(error) do
Ash.Error.error_messages(error.errors)
end
end
end