Class WrongExpectedVersionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WrongExpectedVersionException
    extends java.lang.RuntimeException
    When append request failed the optimistic concurrency on the server.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ExpectedRevision getActualVersion()
      Returns the actual revision of the stream when the check was performed.
      ExpectedRevision getNextExpectedRevision()
      Returns the expected revision by the request.
      java.lang.String getStreamName()
      Returns on which stream the error occurred.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getStreamName

        public java.lang.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.