Package org.rostore.entity
Class OptionMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.rostore.entity.RoStoreException
org.rostore.entity.OptionMismatchException
- All Implemented Interfaces:
Serializable
Exception thrown when an operation on a key can't be executed as requested
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkInsertRecord
(Record record) Checks options when an entry should be inserted and throws an exception if the state is invalid (insert is not allowed).static void
checkUpdateRecord
(KeyBlockEntry entry, Record record) Checks options when an entry should be updated and throws an exception if the state is invalid (update is not allowed).Record caused an exception (as provided when operation is executed)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getRecord
Record caused an exception (as provided when operation is executed)- Returns:
- the record
-
checkUpdateRecord
Checks options when an entry should be updated and throws an exception if the state is invalid (update is not allowed).- Parameters:
entry
- an entry where the operation should be executedrecord
- a record with options as it expected to be executed
-
checkInsertRecord
Checks options when an entry should be inserted and throws an exception if the state is invalid (insert is not allowed).- Parameters:
record
- a record with options as it expected to be inserted
-