View Source Genies.Error exception (Genies v0.0.3)
Summary
Functions
Create the exception using either a message or a changeset who's errors are converted to a message.
Types
@type t() :: %Genies.Error{__exception__: true, message: term()}
Functions
@spec exception(message :: String.t() | Ecto.Changeset.t()) :: t()
Create the exception using either a message or a changeset who's errors are converted to a message.