OkThen.Result.error_unwrap-exclamation-mark

You're seeing just the function error_unwrap-exclamation-mark, go back to OkThen.Result module for more information.
Link to this function

error_unwrap!(result)

Specs

error_unwrap!(result_input()) :: any()

Same as error_unwrap_or_else/2, except raises ArgumentError if result is not tagged :error.

Examples

iex> {:error, "hello"} |> Result.error_unwrap!()
"hello"

iex> :error |> Result.error_unwrap!()
{}

iex> :ok |> Result.error_unwrap!()
** (ArgumentError) Value is not tagged error: :ok.

iex> {:ok, "hello"} |> Result.error_unwrap!()
** (ArgumentError) Value is not tagged error: {:ok, "hello"}.

iex> :none |> Result.error_unwrap!()
** (ArgumentError) Value is not tagged error: :none.

iex> "hello" |> Result.error_unwrap!()
** (ArgumentError) Value is not tagged error: {:untagged, "hello"}.