defmodule Ash.Error.Changes.StaleRecord do @moduledoc "Used when a stale record is attempted to be updated or deleted" use Ash.Error.Exception use Splode.Error, fields: [:resource, :filter], class: :invalid def message(error) do "Attempted to update stale record of #{inspect(error.resource)} with filter `#{error.filter}`" end end