orElse

@NotNull
open fun orElse(@NotNull function: @NotNull (Exception) -> T): @NotNull T

Gets the value or handle exception

Return

value

Parameters

function

exception handler