ehcache

net.sf.ehcache.store.disk
Class StoreUpdateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.ehcache.CacheException
                  extended by net.sf.ehcache.writer.CacheWriterManagerException
                      extended by net.sf.ehcache.store.disk.StoreUpdateException
All Implemented Interfaces:
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
StoreUpdateException(RuntimeException e, boolean update)
          Constructor
 
Method Summary
 boolean isUpdate()
          Whether the element was inserted or updated in the Store
 
Methods inherited from class net.sf.ehcache.writer.CacheWriterManagerException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, 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(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

ehcache

Copyright 2001-2017, Terracotta, Inc.