createError

open fun <E, V> createError(error: E): Expected<E, V>

Create an expected error.

Return

created expected error

Parameters

<E>

type of the expected error

<V>

type of the expected value

error

the expected error