-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework Spring Specific Exception Handling #867
base: main
Are you sure you want to change the base?
Conversation
removed handling of MissingServletRequestPartException because similar response
|
fdcb026
to
2d105f2
Compare
removed handling of NoHandlerFoundException because similar response
|
removed handling of ServletRequestBindingException which includes UnsatisfiedServletRequestParameterException, MissingRequestValueException, MissingMatrixVariableException, MissingPathVariableException, MissingRequestCookieException, MissingRequestHeaderException, because similar response
|
removed handling of MissingServletRequestParameterException because similar response
|
removed handling of HttpRequestMethodNotSupportedException because similar response
|
removed handling of HttpMediaTypeNotAcceptableException and HttpMediaNotSupportedException which are subclasses of HttpMediaTypeException because similar responses. HttpMediaTypeNotAcceptableException
HttpMediaTypeNotSupportedException
|
Interesting that spring doesn't seem to use the problem specific JSON media
subtype
…On Fri, 24 Feb 2023, 19:02 Daniel Rohe, ***@***.***> wrote:
removed handling of HttpMediaTypeNotAcceptableException and
HttpMediaNotSupportedException which are subclasses of
HttpMediaTypeException because similar responses.
—
Reply to this email directly, view it on GitHub
<#867 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADI7HLLJUUE4KZM3EVJ6VLWZDZS5ANCNFSM6AAAAAAVG75VAM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
That's what the test cases show when running with spring's advice :) |
The handling of HttpMessageNotReadableException in MessageNotReadableAdviceTrait with Spring Problem Exception handling is slightly different. This library uses the exception message that unveils possible application internals in details attribute where as the Spring problem handling uses a common string in details attribute. In my opinion the Spring handling is safer as it does not expose application internals. So I'm going to remove handling of this exception, too
|
removed handling of TypeMismatchException because of similar response.
|
Description
#817 - Analyze the similarities and differences between the handling of exceptions of this library and spring's problem-web. Remove default behavior for Spring-specific exceptions and integrate Problem-Web specifics.
Motivation and Context
Separates functionality that is provided by Spring from this library so that the library focuses on valuable extensions.
Types of changes
Checklist: