sdk-common / com.tomtom.online.sdk.common / Result / failure

failure

@JvmStatic fun <T> failure(throwable: Throwable): Result<T>

Creates a Result.Failure from the given Throwable.

Parameters

throwable - The throwable that will be wrapped with Result.