Skip to content

Commit 9e3f3be

Browse files
committed
Consistently throw TestContextAotException in TestContextAotGenerator
See gh-30898
1 parent 2ba9939 commit 9e3f3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private MultiValueMap<ClassName, Class<?>> processAheadOfTime(
227227
}
228228
catch (Exception ex) {
229229
if (this.failOnError) {
230-
throw new IllegalStateException("Failed to generate AOT artifacts for test classes " +
230+
throw new TestContextAotException("Failed to generate AOT artifacts for test classes " +
231231
testClasses.stream().map(Class::getName).toList(), ex);
232232
}
233233
if (logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)