Skip to content

Throw GitHubProjectItemNotFoundError when project item could not be found in query #145

Description

@gr2m

Please avoid duplicates

What’s missing?

A custom error for when an item is not found

Why?

currently a GraphqlResponseError is thrown, with an error looking like this

      {
        type: 'VALIDATION',
        path: [ 'BU' ],
        locations: [ { line: 4, column: 11 } ],
        message: 'The item does not exist in the project'
      }

Alternatives you tried

The error can be caught and identified by manually looking through all errors included in the response

Would you be interested in contributing the feature?

  • yes

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions