result v0.4.0 Result.Error

A Error creator

Link to this section Summary

Functions

Create Error result from value

Link to this section Functions

Create Error result from value

Examples

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

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