-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Problem handling #83
Conversation
• using org.zalando:problem-spring-web • changes were made according to https://www.baeldung.com/problem-spring-web
ce834c5
to
833bcda
Compare
return Status.UNPROCESSABLE_ENTITY; | ||
} else if (exc instanceof HttpMediaTypeNotAcceptableException) { | ||
return Status.NOT_FOUND; | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vielleicht hier das else
entfernen? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eigentlich nicht, damit es ein sauberes if-Statement bleibt. Mit der nächsten Java-Version kann das dann auch auf switch umgebaut werden (ist hier noch experimentell), da wäre das else
dann der default
-Zweig.
Bitte die Änderung noch ins Changelog aufnehmen. |
No description provided.