Thrown when a version conflict occurs, and is only exposed to the client via RecordEventsListener.onError(String, Event, String)
public final com.google.gson.JsonElement newData
The new data attempted to be set from the server
remoteVersion
public final int remoteVersion
The version of the record on the server
oldData
public final com.google.gson.JsonElement oldData
The old data currently on the client
localVersion
public final int localVersion
The version of the record on the client
error
public final java.lang.String error
The error message associated with merge conflict returned by a custom
RecordMergeStrategy
public RecordMergeStrategyException()
Use when you don't need any merge conflict data
RecordMergeStrategyException
public RecordMergeStrategyException(java.lang.String error)
Use when you don't need a reference to the actual conflicting data
RecordMergeStrategyException
public RecordMergeStrategyException(int localVersion,
com.google.gson.JsonElement oldData,
int remoteVersion,
com.google.gson.JsonElement remoteData,
java.lang.String error)
An exception that can contain all the merge issues
Parameters:
localVersion
- The local version during the mergeoldData
- The local data during the mergeremoteVersion
- The remote version during the mergeremoteData
- The remote data during the mergeerror
- An error message describing the issue