createError

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

Create an expected error.

Return

the created expected error

Parameters

error

the expected error

<E>

type of the expected error

<V>

type of the expected value