Package org.cache2k.core
Class CacheClosedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.cache2k.core.CacheClosedException
-
- All Implemented Interfaces:
Serializable
public class CacheClosedException extends IllegalStateException
Consistently this exception is thrown, when an operation detects that the cache is closed.Rationale: It is a subtype of
IllegalStateException
and not aCacheException
since the JSR107 defines it. On the API level we specifyIllegalStateException
to not introduce a new exception type. Moving this to the API level, makes it more difficult to introduce improvements here, since we need to keep stuff for BC. Better keep it internal.- Author:
- Jens Wilke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheClosedException()
CacheClosedException(String qualifiedCacheName)
Included manager and cache name in the detail message, preferred.CacheClosedException(InternalCache<?,?> cache)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CacheClosedException
public CacheClosedException()
-
CacheClosedException
public CacheClosedException(String qualifiedCacheName)
Included manager and cache name in the detail message, preferred.
-
CacheClosedException
public CacheClosedException(InternalCache<?,?> cache)
-
-