Class OptionMismatchException

All Implemented Interfaces:
Serializable

public class OptionMismatchException extends RoStoreException
Exception thrown when an operation on a key can't be executed as requested
See Also:
  • Method Details

    • getRecord

      public Record getRecord()
      Record caused an exception (as provided when operation is executed)
      Returns:
      the record
    • checkUpdateRecord

      public 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).
      Parameters:
      entry - an entry where the operation should be executed
      record - a record with options as it expected to be executed
    • checkInsertRecord

      public static 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).
      Parameters:
      record - a record with options as it expected to be inserted