Witchcraft v1.0.0-beta Witchcraft.Foldable.EmptyError exception View Source
Represent the error state of trying to fold over an empty structure
Examples
iex> %Witchcraft.Foldable.EmptyError{}
%Witchcraft.Foldable.EmptyError{
message: "Unable to process empty data",
plug_status: 500
}
Link to this section Summary
Functions
Callback implementation for Exception.exception/1
Callback implementation for Exception.message/1
Link to this section Types
Link to this type
t()
View Source
t() :: %Witchcraft.Foldable.EmptyError{__exception__: term, data: any, message: String.t, plug_status: pos_integer}
Link to this section Functions
Link to this function
exception(msg)
View Source
exception(String.t) :: Exception.t
exception(keyword) :: Exception.t
Callback implementation for Exception.exception/1
.
Callback implementation for Exception.message/1
.