Package org.rostore.entity
Class VersionMismatchInitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.rostore.entity.RoStoreException
org.rostore.entity.VersionMismatchInitException
- All Implemented Interfaces:
Serializable
Thrown when the version of the entry is set incorrectly on the entry initialization.
It either should be Utils.VERSION_UNDEFINED
for non-versioned entries or
it should be Utils.VERSION_START
.
The logic can be overridden if the RecordOption.OVERRIDE_VERSION
is provided to the record.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAndThrow
(Record record) Checks if the record can be initialized with the given set ofRecordOption
and the version.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
checkAndThrow
Checks if the record can be initialized with the given set ofRecordOption
and the version. If the conditions are not satisfied an exception is thrown.- Parameters:
record
- the record to analyze- Throws:
VersionMismatchInitException
- this exception
-