From 69736af5fc236be00d0026716b254864a4c77a26 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 8 Nov 2022 20:35:17 +0100 Subject: [PATCH] Revise ContextLoadException constructor to accept a Throwable --- .../springframework/test/context/ContextLoadException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/ContextLoadException.java b/spring-test/src/main/java/org/springframework/test/context/ContextLoadException.java index 723d8ebb3c8..6dfe236a695 100644 --- a/spring-test/src/main/java/org/springframework/test/context/ContextLoadException.java +++ b/spring-test/src/main/java/org/springframework/test/context/ContextLoadException.java @@ -38,11 +38,11 @@ public class ContextLoadException extends Exception { /** * Create a new {@code ContextLoadException} for the supplied - * {@link ApplicationContext} and {@link Exception}. + * {@link ApplicationContext} and {@link Throwable}. * @param applicationContext the application context that failed to load * @param cause the exception caught while attempting to load that context */ - public ContextLoadException(ApplicationContext applicationContext, Exception cause) { + public ContextLoadException(ApplicationContext applicationContext, Throwable cause) { super(cause); this.applicationContext = applicationContext; }