Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

@ExceptionHandler is ignored #309

Closed
Sam-Kruglov opened this issue Dec 12, 2019 · 1 comment
Closed

@ExceptionHandler is ignored #309

Sam-Kruglov opened this issue Dec 12, 2019 · 1 comment

Comments

@Sam-Kruglov
Copy link

Sam-Kruglov commented Dec 12, 2019

Hi!

Looking at #166, I found that graphql.kickstart.spring.error.ReflectiveMethodValidator#isGraphQLExceptionHandler is only called for classes which are returned from org.springframework.beans.factory.ListableBeanFactory#getBeanDefinitionNames at the time of ContextRefreshedEvent.

So, at this time, my @Configuration class is not there, in fact, at this time there are about 20 entries there. After the application has started, this method returns 700+ entries including my thing. Could that be the issue? I tried declaring it in the @Componenet as well

The whole thing happens in graphql.kickstart.spring.error.GraphQLErrorStartupListener that calls GraphQLErrorHandlerFactory

@oliemansm
Copy link
Member

Solved by #305

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants