Consistently throw TestContextAotException in TestContextAotGenerator

See gh-30898
This commit is contained in:
Sam Brannen
2023-07-15 14:55:26 +02:00
parent 2ba9939bd8
commit 9e3f3bee71

View File

@@ -227,7 +227,7 @@ public class TestContextAotGenerator {
}
catch (Exception ex) {
if (this.failOnError) {
throw new IllegalStateException("Failed to generate AOT artifacts for test classes " +
throw new TestContextAotException("Failed to generate AOT artifacts for test classes " +
testClasses.stream().map(Class::getName).toList(), ex);
}
if (logger.isDebugEnabled()) {