getOrThrow

inline fun <T> DecodingResult<T>.getOrThrow(): T

Returns the encapsulated value if this instance represents success or throws the encapsulated Throwable if it is failure.

Since

0.4.0