Skip to content

Commit 69736af

Browse files
committed
Revise ContextLoadException constructor to accept a Throwable
1 parent 0e9eab5 commit 69736af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-test/src/main/java/org/springframework/test/context/ContextLoadException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public class ContextLoadException extends Exception {
3838

3939
/**
4040
* Create a new {@code ContextLoadException} for the supplied
41-
* {@link ApplicationContext} and {@link Exception}.
41+
* {@link ApplicationContext} and {@link Throwable}.
4242
* @param applicationContext the application context that failed to load
4343
* @param cause the exception caught while attempting to load that context
4444
*/
45-
public ContextLoadException(ApplicationContext applicationContext, Exception cause) {
45+
public ContextLoadException(ApplicationContext applicationContext, Throwable cause) {
4646
super(cause);
4747
this.applicationContext = applicationContext;
4848
}

0 commit comments

Comments
 (0)