CacheAspectSupport initialization failure should throw dedicated exceptions, rather than IllegalStateException #22442
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
CacheAspectSupport
has two throw clause withIllegalStateException
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
andNoSuchBeanDefinitionException
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 spring-projects/spring-boot#13348 for more context.
The text was updated successfully, but these errors were encountered: