result v1.3.0 Result.Error

A Error creator

Link to this section Summary

Functions

Create Error result from value

Link to this section Types

Link to this type t(error)
t(error) :: {:error, error}

Link to this section Functions

Link to this function of(value)
of(arg) :: t(arg) when arg: var

Create Error result from value

Examples

iex> Result.Error.of("a")
{:error, "a"}

iex> Result.Error.of(12345)
{:error, 12345}