why deepstreamHub? compare us getting started feature roadmap faq
use cases pricing
developers
company
enterprise blog contact

Thrown when a version conflict occurs, and is only exposed to the client via RecordEventsListener.onError(String, Event, String)

    Fields

      newData

      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

    Constructor

      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 merge
      oldData - The local data during the merge
      remoteVersion - The remote version during the merge
      remoteData - The remote data during the merge
      error - An error message describing the issue