onError

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

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