Expected

open fun Expected(error: E, value: V)

Create an expected instance, one of the provided arguments must be null else the expected will be treated as a value.

Parameters

error

the error of the expected or null

value

the value of the expected or null