catch

inline fun <R> catch(block: () -> R): Result<R, OidcError>

Function to catch and handle exceptions.

Return

The result of the block execution, or an error.

Parameters

block

The block of code to execute.