Package dev.morphia

Class VersionMismatchException

  • All Implemented Interfaces:

    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • VersionMismatchException

        public VersionMismatchException​(Class<?> type,
                                        Object idValue)
        Creates a new exception with a message.
        type - the versioned type
        idValue - the ID value