Class StoreUpdateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class StoreUpdateException
    extends CacheWriterManagerException
    Exception thrown by the Store when the writer fails. Used to determine whether the element was inserted or updated in the Store
    Author:
    Alex Snaps
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      StoreUpdateException​(java.lang.RuntimeException e, boolean update)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isUpdate()
      Whether the element was inserted or updated in the Store
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StoreUpdateException

        public StoreUpdateException​(java.lang.RuntimeException e,
                                    boolean update)
        Constructor
        Parameters:
        e - the cause of the failure
        update - true if element was updated, false if inserted
    • Method Detail

      • isUpdate

        public boolean isUpdate()
        Whether the element was inserted or updated in the Store
        Returns:
        true if element was updated, false if inserted