onError

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

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