classifyPresentmentException

fun classifyPresentmentException(error: Throwable, waitingForConnection: Boolean = false): PresentmentOutcome

Maps a Throwable thrown during presentment to a structured PresentmentOutcome.

Parameters

error

the exception thrown during presentment or connection setup.

waitingForConnection

true if the exception occurred while advertising or waiting for a transport connection before entering presentment.