@ExceptionHandler not getting called #554
Replies: 2 comments 2 replies
-
Debugging further and after setting debuging on. I noticed following logs DEBUG g.k.s.e.GraphQLErrorHandlerFactory - Handle GraphQL errors using exception handlers defined in 0 custom factories I had expected size of custom factories to be 1. Having an object of type ReflectiveGraphQLErrorFactory containing my handler (bean). I came with idea to create GraphQLErrorFromExceptionHandler with List, list could have contained my customerrorhandler but class is not visible out of the library.... so thats that. Running out of ideas :( Any suggestions group ? |
Beta Was this translation helpful? Give feedback.
-
Are you using the latest version of this library? There was a problem with the exception handler for a while that went unnoticed in earlier versions. Did you add the Does your annotated method have a return type of |
Beta Was this translation helpful? Give feedback.
-
Hello Guys,
I have a problem trying to configure @ExceptionHandler with my springboot application. In my application exceptions get handled inside SimpleDataFetcherExceptionHandler despite configuring and @component with @ExceptionHandler methods for various exceptions.
I have set the properties correctly and followed the disucssion on link mentioned below.
graphql.servlet.exception-handlers-enabled=true
[https://github.com//issues/384]
It could be that other jar file in my pom are causing it. I have included spring cloud stream and kafka binder recently.
How can check if my exception handler got configured correctly (maybe via GraphQLWebAutoConfiguration or GraphQLErrorStartupListener)?
Is there a way to set it manually using @configuration approach ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions