Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
gr2m opened this issue Oct 7, 2023 · 1 comment
Open
1 of 2 tasks

Comments

@gr2m
Copy link
Owner

gr2m commented Oct 7, 2023

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
@gr2m gr2m changed the title Throw GitHubProjectItemNotFound when project item could not be found in query Throw GitHubProjectItemNotFoundError when project item could not be found in query Oct 24, 2023
@gr2m
Copy link
Owner Author

gr2m commented Oct 24, 2023

Another error can look like this

GraphqlResponseError: Request failed due to following response errors:
 - Could not resolve to a node with the global id of 'PVTI_lADNJr_OAAWBdc4Cg8PL'.

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

No branches or pull requests

1 participant