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

Distinguish between a ValidationError and AuthenticationError #315

Closed
janwo opened this issue Mar 12, 2019 · 1 comment
Closed

Distinguish between a ValidationError and AuthenticationError #315

janwo opened this issue Mar 12, 2019 · 1 comment
Assignees
Labels
kind/feature A request for a new feature.

Comments

@janwo
Copy link

janwo commented Mar 12, 2019

Feature request

Is your feature request related to a problem? Please describe

I am trying to distinguish between an inputRule error and a general permission error. At the moment it seems like both aspects are treated the same as there is only one fallbackError.

Describe the solution you'd like

It would be great, if there is a fallbackError and a fallbackValidationError in order to distinguish the cause of the error.

Describe alternatives you've considered

In order to keep the existing API, it may be a good idea to just check whether a function or an object was defined for fallbackError. This way I could do the distinction in that function then 🎉.

@open-collective-bot
Copy link

Hey @janwo 👋,

Thank you for opening an issue. We will get back to you as
soon as we can. Also, check out our OpenCollective and consider
backing us.

https://opencollective.com/graphql-shield

PS.: We offer priority support for all backers. Don't forget to add priority label when you start backing us 😄

@maticzav maticzav self-assigned this Mar 12, 2019
@maticzav maticzav added the kind/feature A request for a new feature. label Mar 12, 2019
@janwo janwo closed this as completed Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants