org.springframework.cache

Class Cache.ValueRetrievalException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • org.springframework.cache.Cache.ValueRetrievalException
  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing interface:
    Cache


    public static class Cache.ValueRetrievalException
    extends java.lang.RuntimeException
    Wrapper exception to be thrown from Cache.get(Object, Callable) in case of the value loader callback failing with an exception.
    Since:
    4.3
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ValueRetrievalException(java.lang.Object key, java.util.concurrent.Callable<?> loader, java.lang.Throwable ex) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getKey() 
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValueRetrievalException

        public ValueRetrievalException(@Nullable
                                       java.lang.Object key,
                                       java.util.concurrent.Callable<?> loader,
                                       java.lang.Throwable ex)
    • Method Detail

      • getKey

        @Nullable
        public java.lang.Object getKey()