mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-08 18:41:37 +00:00
Improve deprecated exception message
Update the exception message so that it includes the class name of the implementation. See gh-22497
This commit is contained in:
+2
-2
@@ -192,8 +192,8 @@ public class ConfigFileApplicationListener implements EnvironmentPostProcessor,
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(ApplicationEvent event) {
|
||||
throw new IllegalStateException(
|
||||
"ConfigFileApplicationListener is deprecated and can only be used as an EnvironmentPostProcessor");
|
||||
throw new IllegalStateException("ConfigFileApplicationListener [" + getClass().getName()
|
||||
+ "] is deprecated and can only be used as an EnvironmentPostProcessor");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user