onError

abstract val onError: (ErrorRecord, SubscriptionModel<*>) -> Unit?

This callback function will be called if some mutation encounters an error.