onError

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