Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Table of Contents

Status

Current state[One of "Under Discussion", "Accepted", "Rejected"]

...

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

As the moment the IQ is only thrown InvalidStateStoreException for all errors. That means the Currently, IQ throws InvalidStateStoreException for any types of error, that means a user cannot handle different types of errors. We error. Because of that, we should throw different exceptions for different typeseach type.

Proposed Changes

Add two new exception class classes for the IQ state store errors:

...

StateStoreMigratedException can be used for to indicate a state store is currently not available and it may have been migrated to another instance. Therefore, the user needs reneeds re-discovering its location.

StateStoreClosedException can be used for to indicate a state store is closed.(RocksDBStore, WrappedStateStore)

...