Hook called when a mutation throws an error.
typedef OnErrorCallback<P> = FutureOr<void> Function(Object error, P params, dynamic context);