Class BadCacheFunctionRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.opendaylight.infrautils.caches.BadCacheFunctionRuntimeException
-
- All Implemented Interfaces:
Serializable
public class BadCacheFunctionRuntimeException extends RuntimeException
Exception thrown when aCacheFunction
returns a null value, which it never should. Consider usingOptional
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 invokingCache.get(Object)
should typically NOT catch this Exception, but let it propagate.- Author:
- Michael Vorburger.ch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BadCacheFunctionRuntimeException(String message)
BadCacheFunctionRuntimeException(String message, Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-