Skip to content

FederationSchemaFactory does not support custom DataFetcherExceptionResolver #1335

@ivandedkov

Description

@ivandedkov

Hello!
When I try to register my own DataFetcherExceptionResolver in context, using federation annotations as EntityMapping annotation, FederationSchemaFactory ignores it, because it uses its ExceptionResolver. The reason - FederationSchemaFactory extends AnnotatedControllerDetectionSupport, and it registers only AnnotatedControllerExceptionResolver as single ExceptionResolver. For example using GraphQlSource.Builder, using spring without federation, it registers exception resolvers as list. And when I throw exception under native controller annotations as SchemaMapping annotation or QueryMapping annotation, it catches all my exceptions and puts into my custom resolvers.

According to it, under federation annotations I am able to use only GraphQlExceptionHandler annotation method way

My request is to add supporting list of exception resolvers into FederationSchemaFactory as it did in GraphQlSource.Builder

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions