Package javax.cache
Class CachingShutdownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.cache.CacheException
javax.cache.CachingShutdownException
- All Implemented Interfaces:
Serializable
Thrown to indicate an exception has occurred in an aggregate Caching shutdown
procedure.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCachingShutdownException(Map<CacheManager, Exception> failures) Constructs a new CachingShutdownException with the specified list of shutdown failures. -
Method Summary
Modifier and TypeMethodDescriptionReturn the set of CacheManagers that failed during shutdown and the associated thrown exceptions.toString()Returns a short description of this throwable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
CachingShutdownException
Constructs a new CachingShutdownException with the specified list of shutdown failures.- Parameters:
failures- a map containing the thrown exceptions
-
-
Method Details
-
getFailures
Return the set of CacheManagers that failed during shutdown and the associated thrown exceptions.- Returns:
- the set of thrown exceptions
-
toString
Returns a short description of this throwable. The result is the concatenation of:- the name of the class of this object
- ": " (a colon and a space)
- the result of invoking this object's
Throwable.getLocalizedMessage()method
-