onFailure

inline fun <T> DecodingResult<T>.onFailure(action: (exception: Throwable) -> Unit): DecodingResult<T>

Performs the given action on the encapsulated Throwable exception if this instance represents failure. Returns the receiver DecodingResult.

Since

0.4.0