Class BadCacheFunctionRuntimeException

  • All Implemented Interfaces:
    Serializable

    public class BadCacheFunctionRuntimeException
    extends RuntimeException
    Exception thrown when a CacheFunction returns a null value, which it never should. Consider using Optional as Value of the Cache if its Function may not have values for some keys. This is a RuntimeException because it always indicates a programmer's error in code (a bug). User code invoking Cache.get(Object) should typically NOT catch this Exception, but let it propagate.
    Author:
    Michael Vorburger.ch
    See Also:
    Serialized Form
    • Constructor Detail

      • BadCacheFunctionRuntimeException

        public BadCacheFunctionRuntimeException​(String message)
      • BadCacheFunctionRuntimeException

        public BadCacheFunctionRuntimeException​(String message,
                                                Throwable cause)