OkThen.Result.from_error-exclamation-mark
You're seeing just the function
from_error-exclamation-mark
, go back to OkThen.Result module for more information.
Link to this function
from_error!(value)
Specs
Same as from_error/1
, except raises ArgumentError
if value
is nil
.
Examples
iex> Result.from_error!("hello")
{:error, "hello"}
iex> Result.from_error!({1, 2})
{:error, {1, 2}}
iex> Result.from_error!(nil)
** (ArgumentError) Value is nil.