@Test public void propagate_notime() { RuntimeException t = STANDARD_PROPAGATOR.propagateException( null, toInfo(new RuntimeException("serious thing"), 0)); assertFalse(t.toString().contains("expiry=")); }
@Override public RuntimeException propagateException(Object key, ExceptionInformation exceptionInformation) { long expiry = exceptionInformation.getUntil(); String txt = ""; if (expiry > 0) { if (expiry == ExpiryTimeValues.ETERNAL) { txt = "expiry=ETERNAL, cause: "; } else { txt = "expiry=" + formatMillis(expiry) + ", cause: "; } } return new CacheLoaderException(txt + exceptionInformation.getException(), exceptionInformation.getException()); }
StandardExceptionPropagator implements ExceptionPropagator { @Override public RuntimeException propagateException(Object key, ExceptionInformation exceptionInformation) { long expiry = exceptionInformation.getUntil(); String txt = ""; if (expiry > 0) { if (expiry == ExpiryTimeValues.ETERNAL) { txt = "expiry=ETERNAL, cause: "; } else { txt = "expiry=" + formatMillis(expiry) + ", cause: "; } } return new CacheLoaderException(txt + exceptionInformation.getException(), exceptionInformation.getException()); } }
StandardExceptionPropagator implements ExceptionPropagator { @Override public RuntimeException propagateException(Object key, ExceptionInformation exceptionInformation) { long expiry = exceptionInformation.getUntil(); String txt = ""; if (expiry > 0) { if (expiry == ExpiryTimeValues.ETERNAL) { txt = "expiry=ETERNAL, cause: "; } else { txt = "expiry=" + formatMillis(expiry) + ", cause: "; } } return new CacheLoaderException(txt + exceptionInformation.getException(), exceptionInformation.getException()); }  }
StandardExceptionPropagator implements ExceptionPropagator { @Override public RuntimeException propagateException(Object key, ExceptionInformation exceptionInformation) { long expiry = exceptionInformation.getUntil(); String txt = ""; if (expiry > 0) { if (expiry == ExpiryTimeValues.ETERNAL) { txt = "expiry=ETERNAL, cause: "; } else { txt = "expiry=" + formatMillis(expiry) + ", cause: "; } } return new CacheLoaderException(txt + exceptionInformation.getException(), exceptionInformation.getException()); }  @Override RuntimeException propagateException(Object key,
                                             ExceptionInformation exceptionInformation); }
StandardExceptionPropagator implements ExceptionPropagator { @Override public RuntimeException propagateException(Object key, ExceptionInformation exceptionInformation) { long expiry = exceptionInformation.getUntil(); String txt = ""; if (expiry > 0) { if (expiry == ExpiryTimeValues.ETERNAL) { txt = "expiry=ETERNAL, cause: "; } else { txt = "expiry=" + formatMillis(expiry) + ", cause: "; } } return new CacheLoaderException(txt + exceptionInformation.getException(), exceptionInformation.getException()); }  @Override RuntimeException propagateException(Object key,
                                             ExceptionInformation exceptionInformation);  }