Skip to content

handleDataFetchingException is not sent enough information #525

Closed

Description

@bbakerman

Currently :

protected void handleDataFetchingException(
        ExecutionContext executionContext,
        GraphQLFieldDefinition fieldDef,
        Map<String, Object> argumentValues,
        ExecutionPath path,
        Exception e) {
    ExceptionWhileDataFetching error = new ExceptionWhileDataFetching(path, e);
    executionContext.addError(error);
    log.warn(error.getMessage(), e);
}

It should take the same parameters as the ExecutionStrategy and hence give access to everything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions