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

Handle multiple exceptions #139

Closed
Maximilien-R opened this issue Mar 5, 2019 · 0 comments
Closed

Handle multiple exceptions #139

Maximilien-R opened this issue Mar 5, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@Maximilien-R
Copy link
Member

In some cases, it may be relevant to not only raise the first exception encountered and allow multiple exceptions to be handled at one time.

In the case of directives and in particular on_argument_execution the fact of handling several errors could be interesting:

type Query {
    search(
        query: String! @maxLength(limit: 50)
        page: Int! = 1 @maxValue(limit: 10)
    )
}

Currently, if the directives for these two arguments raise an exception, only the first raised exception will be returned as an error (bypassing the second). But it could be useful to return both errors at the same time.

@Maximilien-R Maximilien-R added enhancement New feature or request question Further information is requested labels Mar 5, 2019
@Maximilien-R Maximilien-R added this to the road-to-v1 milestone Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant