Is controller advice still necessary if I'm using the CustomDataFetchingExceptionHandler #1017
-
|
Hi I have a custom handler as per the documentation here https://netflix.github.io/dgs/error-handling/ My custom exception is Should I still have a controller advice to return a ResponseEntity for my custom exception or is that not necessary due to me having a custom exception with a specific error message?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You shouldn't need a controller advice. The only controller that's being used is the |
Beta Was this translation helpful? Give feedback.
You shouldn't need a controller advice. The only controller that's being used is the
DgsRestControllerthat actually handles the/graphqlendpoint. Before that controller returns anything, your custom exception handler already did it's work, so there is nothing to do for an advice.