Files
spring-graphql/spring-graphql-docs
Brian Clozel e17903051c Inject prepared GraphqlErrorBuilder in error handling methods
Prior to this commit, error handling methods would support various
arguments, including the exception being handled.
Our reference documentation would advise to create a new instance of a
`GraphQLError` using `GraphQLError.newError()`. This does not initialize
the location and path information of the current error.

This commit allows error handling methods to get injected with a
`GraphQlErrorBuilder<?>` argument that is initialized with the current
`DataFetchingEnvironment` (thus filling the location and path parts).

Fixes gh-1200
2025-05-16 18:09:42 +02:00
..