\n | if (error instanceof Throwable) { | \n
GraphQLError
is just an interface and anybody is free to create a custom exception which also implements the GraphQLError
interface. So think that's the main reason this condition exists.
I'll convert this issue to a Discussion btw.
","upvoteCount":1,"url":"https://github.com/graphql-java-kickstart/graphql-java-servlet/discussions/409#discussioncomment-2024565"}}}-
If I am not mistaken a throwable will never be a GraphQLError... |
Beta Was this translation helpful? Give feedback.
-
I'll convert this issue to a Discussion btw. |
Beta Was this translation helpful? Give feedback.
GraphQLError
is just an interface and anybody is free to create a custom exception which also implements theGraphQLError
interface. So think that's the main reason this condition exists.I'll convert this issue to a Discussion btw.