sdk-common / com.tomtom.online.sdk.common.functional / Try / getCause

getCause

abstract fun getCause(): Throwable!

Gets the cause if this is a Failure or throws if this is a Success.

Exceptions

UnsupportedOperationException - if this is a Success.

Return
Throwable!: the cause if this is a Failure.