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

getChecked

abstract fun getChecked(): T
Deprecated: Deprecated in Java

Returns Success value or in case of Failure throws a Throwable. This method is deprecated, as checked exceptions are causing issues with how the code is structured, and create issues with code refactoring and restructuring. Please use Try#get() instead.

Exceptions

Throwable - Throwable stored in the Failure.

Return
T: Value stored in the Success.