Skip to content

Commit

Permalink
Revise ContextLoadException constructor to accept a Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Nov 8, 2022
1 parent 0e9eab5 commit 69736af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 69736af

Please sign in to comment.