Skip to content

Commit d955549

Browse files
committed
Clarify scope of exception
See gh-29491
1 parent b68f76c commit d955549

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/NoHandlerFoundException.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,14 +27,11 @@
2727
import org.springframework.web.ErrorResponse;
2828

2929
/**
30-
* By default, when the DispatcherServlet can't find a handler for a request it
31-
* sends a 404 response. However, if its property "throwExceptionIfNoHandlerFound"
32-
* is set to {@code true} this exception is raised and may be handled with
33-
* a configured HandlerExceptionResolver.
30+
* Thrown when the {@link DispatcherServlet} can't find a handler for a request,
31+
* which may be handled with a configured {@link HandlerExceptionResolver}.
3432
*
3533
* @author Brian Clozel
3634
* @since 4.0
37-
* @see DispatcherServlet#setThrowExceptionIfNoHandlerFound(boolean)
3835
* @see DispatcherServlet#noHandlerFound(HttpServletRequest, HttpServletResponse)
3936
*/
4037
@SuppressWarnings("serial")

0 commit comments

Comments
 (0)