Package org.cache2k.io
Class CacheLoaderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cache2k.CacheException
-
- org.cache2k.io.CacheLoaderException
-
- All Implemented Interfaces:
Serializable
public class CacheLoaderException extends CacheException
Exception to wrap a loader exception. When an exception is thrown by the loader and rethrown to the application it is wrapped in this exception.It is possible to register a custom behavior how exceptions are rethrown (propagated) with the
ExceptionPropagator
.A single loader exception may be thrown multiple times to the application, if the exception is cached. On the other hand, it is possible to suppress a loader exception if the cache still contains data. This is controlled by the
ResiliencePolicy
.In case one cached exception is thrown many times with in a timespan, it contains the string
expiry=<timestamp>
. This is the behavior of the standardExceptionPropagator
- Since:
- 2
- Author:
- Jens Wilke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheLoaderException(String message, Throwable ex)
CacheLoaderException(Throwable ex)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-