failure

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

Returns an instance that encapsulates the given Throwable as failure.

Since

0.4.0