public interface ExceptionPropagator<K>
CacheLoaderException. This behavior can be modified by registering a custom
exception propagator.
Exceptions should not be thrown directly but wrapped. Using this customization it is possible to change the exceptions type or the message according to the information available.
| Modifier and Type | Method and Description |
|---|---|
RuntimeException |
propagateException(K key,
ExceptionInformation exceptionInformation)
Generate runtime exception to throw.
|
RuntimeException propagateException(K key, ExceptionInformation exceptionInformation)
exceptionInformation - information when the original exception occurred.cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.