Skip to content

Commit

Permalink
Merge #5432 from 4.1 into 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Apr 7, 2024
2 parents 65e7b8a + 2b37c51 commit b8a0530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ViewHandlingStrategy getStrategy(String viewId) {
return Arrays.stream(strategies)
.filter(strategy -> strategy.handlesViewId(viewId))
.findFirst()
.orElseThrow(ViewHandlingStrategyNotFoundException::new);
.orElseThrow(()-> new ViewHandlingStrategyNotFoundException(viewId));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/**
* Indicates that no {@link com.sun.faces.application.view.ViewHandlingStrategy} instances were found appropriate to a
* particulare view ID.
* particular view ID.
*/
public class ViewHandlingStrategyNotFoundException extends FacesException {

Expand All @@ -31,9 +31,9 @@ public class ViewHandlingStrategyNotFoundException extends FacesException {
/**
* @see FacesException#FacesException()
*/
public ViewHandlingStrategyNotFoundException() {
public ViewHandlingStrategyNotFoundException(String viewId) {

super();
super("Strategy not found for viewId: " + viewId);

}

Expand Down

0 comments on commit b8a0530

Please sign in to comment.