Package com.eventstore.dbclient
Class WrongExpectedVersionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.eventstore.dbclient.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.
-
-
-
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.
-
-