failure

inline fun <T> failure(exception: Throwable): Resultat<T>

Returns an instance that encapsulates the given Throwable as failure.