`MissingServletRequestPartException` should extend `ServletRequestBindingException` directly
See original GitHub issueUnlike similar exceptions, MissingServletRequestPartException
directly extends ServletException
; whereas, the following extend MissingRequestValueException
which extends ServletRequestBindingException
which indirectly extends ServletException
.
MissingServletRequestParameterException
MissingRequestHeaderException
- …
How about changing it if there is no good reason? 🤔
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Spring Boot @ExceptionHandler for Exception.class not ...
Since I am extending from ResourceEntityExceptionHandler, all the exceptions were being handled by handleException() method in that class.
Read more >spring-projects/spring-boot - Gitter
I'll make a sample for the Spring Boot team. ... Which exception? ... The request flow should stop after my custom exception, am...
Read more >Class MissingServletRequestPartException - Spring
Note: This exception does not extend from ServletRequestBindingException because it can also be raised at a lower level, i.e. from this package which...
Read more >Spring boot Rest responding with empty body for exceptions ...
You need to define generic exception structure once you use @ControllerAdvice. ... when ControllerAdvice class is extending ResponeEntityExceptionHandler .
Read more >index all classes all packages - spring-web 6.0.2 javadoc
Extension point that subclasses can use to add extra bind values for a request. ... Allows data binding to be disabled directly on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think that would be okay but would probably require some changes in
DefaultHandlerExceptionResolver
and inResponseEntityExceptionHandler
. Those handleServletRequestBindingException
ahead ofMissingServletRequestPartException
, while some more concrete sub-classes are checked earlier. We’d probably need to moveMissingServletRequestPartException
up in the order as well to preserve the call to the protected method.Superseded by #27948.