Package org.cache2k
Class CacheClosedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.cache2k.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 uses it and it makes sense to logically a specialisation of it.- Author:
- Jens Wilke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheClosedException()
CacheClosedException(Cache<?,?> cache)
This is the preferred constructor.
-
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(Cache<?,?> cache)
This is the preferred constructor. Extracts the cache name and the manager name to be more informative.
-
-