Skip to content

Improve non-nullable argument exception in ValuesResolver - #2572

Merged
bbakerman merged 1 commit into
graphql-java:masterfrom
dondonz:2524-better-exception
Oct 4, 2021
Merged

bbakerman merged 1 commit into
graphql-java:masterfrom
dondonz:2524-better-exception

Conversation

@dondonz

@dondonz dondonz commented Oct 4, 2021

Copy link
Copy Markdown
Member

Addresses #2524.

Previously, an non-nullable argument with a coerced null value raised a generic RuntimeException. This PR updates the exception to be more meaningful.

@bbakerman bbakerman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bbakerman bbakerman added this to the 18.0 milestone Oct 4, 2021
@bbakerman
bbakerman merged commit b6611f0 into graphql-java:master Oct 4, 2021
@dondonz
dondonz deleted the 2524-better-exception branch October 5, 2021 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants