Package org.allGraphQLCases.server.config
package org.allGraphQLCases.server.config
-
ClassDescriptionA Spring bean that register
DataFetcherExceptionResolverAdapter
to configure the way Java exceptions are mapped to GraphQL errors.
This class is both a sample, and the support for an IT test that checks proper error management on client side, when an error occurs on server side.This class has been copied from this thread, based on graphql-java's TracingInstrumentation.Implements the spring-graphql exception management, for Subscriptions