Class 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 a CacheException since the JSR107 defines it. On the API level we specify IllegalStateException 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 Detail

      • CacheClosedException

        public CacheClosedException()
      • CacheClosedException

        public CacheClosedException​(org.cache2k.Cache cache)
        Included manager and cache name in the detail message, preferred.