Move DataFetcherExceptionResolver to execution

DataFetcherExceptionResolver and ErrorType are better in the
execution package next to where they're used.
This commit is contained in:
Rossen Stoyanchev
2021-05-14 18:29:43 +01:00
parent 1a4ef20f8a
commit 20b8a664bd
7 changed files with 3 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ResourceLoader;
import org.springframework.graphql.DataFetcherExceptionResolver;
import org.springframework.graphql.execution.DataFetcherExceptionResolver;
import org.springframework.graphql.execution.GraphQLSource;
@Configuration

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.graphql;
package org.springframework.graphql.execution;
import java.util.List;

View File

@@ -33,7 +33,6 @@ import graphql.schema.idl.SchemaParser;
import graphql.schema.idl.TypeDefinitionRegistry;
import org.springframework.core.io.Resource;
import org.springframework.graphql.DataFetcherExceptionResolver;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.graphql;
package org.springframework.graphql.execution;
import graphql.ErrorClassification;

View File

@@ -25,8 +25,6 @@ import graphql.execution.DataFetcherExceptionHandlerParameters;
import graphql.execution.DataFetcherExceptionHandlerResult;
import graphql.schema.DataFetchingEnvironment;
import org.springframework.graphql.DataFetcherExceptionResolver;
import org.springframework.graphql.ErrorType;
import org.springframework.util.Assert;
/**

View File

@@ -27,7 +27,6 @@ import graphql.schema.idl.RuntimeWiring;
import graphql.schema.idl.TypeDefinitionRegistry;
import org.springframework.core.io.Resource;
import org.springframework.graphql.DataFetcherExceptionResolver;
/**
* Strategy to resolve the {@link GraphQL} instance to use.

View File

@@ -31,8 +31,6 @@ import graphql.schema.idl.RuntimeWiring;
import org.junit.jupiter.api.Test;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.graphql.DataFetcherExceptionResolver;
import org.springframework.graphql.ErrorType;
import org.springframework.lang.Nullable;
import static org.assertj.core.api.Assertions.assertThat;