You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But for now our custom exceptions are already inherited from ResponseStatusException. Why would it be better to replace it with HttpStatusException? We will still need to handle it in ControllerAdvice...
now we doing something like this:
and we do support exception handling via Spring Exception Handlers:
pmo/src/main/java/git/tracehub/pmo/controller/AdviceController.java
Lines 76 to 87 in 385414f
We actually can get rid of this by making all our custom exceptions extend
HttpStatusException
. After this all of them will be handled by Spring@hizmailovich wdyt?
The text was updated successfully, but these errors were encountered: