Class ModelCommitConflictException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.fluxzero.sdk.modeling.ModelCommitConflictException
All Implemented Interfaces:
Serializable

public class ModelCommitConflictException extends RuntimeException
A Model mutation cannot commit because its state conflicted with another mutation. A rejected storage commit exposes getResult(); loss of a pinned document during preparation instead exposes getReadConflict(). The latter is terminal: preparation cannot replay missing document history and must not silently rerun the mutation against a newer state.
See Also:
  • Constructor Details

    • ModelCommitConflictException

      public ModelCommitConflictException(CommitModelsResult result)
      Creates an exception containing the runtime's current model and relationship positions.
    • ModelCommitConflictException

      public ModelCommitConflictException(ModelCommitConflictException.ReadConflict readConflict, Throwable cause)
      Creates a terminal preparation conflict without inventing current storage positions or a storage response.