@JvmStatic fun <T> failure(throwable: Throwable): Result<T>
Creates a Result.Failure from the given Throwable.
throwable - The throwable that will be wrapped with Result.
throwable