Title: Improve NonNullableValueCoercedAsNullException message by dondonz · Pull Request #2774 · graphql-java/graphql-java · GitHub
Open Graph Title: Improve NonNullableValueCoercedAsNullException message by dondonz · Pull Request #2774 · graphql-java/graphql-java
X Title: Improve NonNullableValueCoercedAsNullException message by dondonz · Pull Request #2774 · graphql-java/graphql-java
Description: In #2761, the message from NonNullableValueCoercedAsNullException made it hard to identify the offending value. This PR improves the exception's message. Before and after Before, we would throw throw new NonNullableValueCoercedAsNullException("", emptyList(), graphQLType); Which led to this unclear message Field '' has coerced Null value for NonNull type 'String!' Now, the message will include the offending variable's name and the reason for the exception Variable 'foo' has invalid value: Coerced Null value for NonNull type 'String!'
Open Graph Description: In #2761, the message from NonNullableValueCoercedAsNullException made it hard to identify the offending value. This PR improves the exception's message. Before and after Before, we would throw...
X Description: In #2761, the message from NonNullableValueCoercedAsNullException made it hard to identify the offending value. This PR improves the exception's message. Before and after Before, we would t...
Opengraph URL: https://github.com/graphql-java/graphql-java/pull/2774
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:83cae67d-4c6c-5497-275a-76607dfa2975 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C150:F0ECB:23B41AD:34335A7:6A60CBDE |
| html-safe-nonce | aba579051339d9f53f762810f2abfdd0a3541e459d8f6e1ec095e9372d432e24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTUwOkYwRUNCOjIzQjQxQUQ6MzQzMzVBNzo2QTYwQ0JERSIsInZpc2l0b3JfaWQiOiIyNzIxMDE2MjE3OTM5NzkwODE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e5fb273cc424b2b003921dd95eb56e235490446e952eac649b9004cc682d132 |
| hovercard-subject-tag | pull_request:890732046 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/2774/files |
| twitter:image | https://avatars.githubusercontent.com/u/13839920?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13839920?s=400&v=4 |
| og:image:alt | In #2761, the message from NonNullableValueCoercedAsNullException made it hard to identify the offending value. This PR improves the exception's message. Before and after Before, we would throw... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a9556c67fd2e63f5fecafc192915a3b089ef8170a9384ff6b59d7b4a2f6b73f8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f464e59c3a800187a50f3c89c36ee16df9992c1b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width