Package dev.morphia
Class VersionMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.util.ConcurrentModificationException
-
- dev.morphia.VersionMismatchException
-
- All Implemented Interfaces:
Serializable
public class VersionMismatchException extends ConcurrentModificationException
This exception is thrown when a version field does not match the expected state in the database. It's thrown when a versioned entity is changed by another process after it was loaded but before any changes were written back to the database.- Since:
- 2.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VersionMismatchException(Class<?> type, Object idValue)
Creates a new exception with a message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-