onFailureHandler
fun <T> ERROR CLASS: Symbol not found for Consumer<ERROR CLASS: Symbol not found for Result<T>>.onFailureHandler(mapper: (ERROR CLASS: Symbol not found for NSError??) -> Throwable = { error: NSError? ->
if (error is KMPError) {
PubNubException(error.statusCode().toInt(), error.localizedDescription, null)
} else {
PubNubException(errorMessage = error?.localizedDescription)
}
}): (ERROR CLASS: Symbol not found for NSError??) -> Unit