Class PersistentObjectVersionException

All Implemented Interfaces:
Serializable

public class PersistentObjectVersionException extends PersistentObjectException
Optimistic locking exception thrown by PersistentObject.setRoot() when the expected version number does not agree.
See Also:
  • Constructor Details

    • PersistentObjectVersionException

      public PersistentObjectVersionException(long actualVersion, long expectedVersion)
  • Method Details

    • getActualVersion

      public long getActualVersion()
      Get the actual, unexpected version number.
      Returns:
      actual version number
    • getExpectedVersion

      public long getExpectedVersion()
      Get the version number that was expected.
      Returns:
      expected version number