Class NonUniqueCacheException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.actuate.cache.NonUniqueCacheException
- All Implemented Interfaces:
Serializable
public class NonUniqueCacheException extends RuntimeException
Exception thrown when multiple caches exist with the same name.- Since:
- 2.1.0
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description NonUniqueCacheException(String cacheName, Collection<String> cacheManagerNames)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getCacheManagerNames()
String
getCacheName()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
NonUniqueCacheException
public NonUniqueCacheException(String cacheName, Collection<String> cacheManagerNames)
Method Detail
getCacheName
public String getCacheName()
getCacheManagerNames
public Collection<String> getCacheManagerNames()