Class WrongExpectedVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.eventstore.dbclient.WrongExpectedVersionException
All Implemented Interfaces:
Serializable

public class WrongExpectedVersionException extends RuntimeException
When append request failed the optimistic concurrency on the server.
See Also:
  • Method Details

    • getStreamName

      public String getStreamName()
      Returns on which stream the error occurred.
    • getNextExpectedRevision

      public ExpectedRevision getNextExpectedRevision()
      Returns the expected revision by the request.
    • getActualVersion

      public ExpectedRevision getActualVersion()
      Returns the actual revision of the stream when the check was performed.