Class ComputationErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.hk2.utilities.cache.ComputationErrorException
-
- All Implemented Interfaces:
Serializable
public class ComputationErrorException extends RuntimeException
This exception should be thrown from theComputable.compute(Object)
method if the returned computation should NOT be kept in the cache. The actual value returned by thegetComputation()
should be returned to the caller, but that value should be considered volatile and should NOT be kept in the cache- Author:
- jwells
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Object
computation
-
Constructor Summary
Constructors Constructor Description ComputationErrorException()
ComputationErrorException(Object computation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getComputation()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-