CacheAspectSupport has two throw clause with IllegalStateException that represents a user-facing configuration problem. It would be nice to adapt them so that we provide additional context and information.

I wonder if re-throwing NoUniqueBeanDefinitionException and NoSuchBeanDefinitionException with extra semantic would be an option.

The plan is to add a FailureAnalyzer without having to write too much code since these low-level exceptions are already handled.

See https://github.com/spring-projects/spring-boot/issues/13348 for more context.