toScanFailure

fun Throwable.toScanFailure(): ScanFailure?

Try to convert to a ScanFailure. Return null in the cases it's not possible