René's URL Explorer Experiment


Title: Improve error handling to allow users to make a decision on the type of error · Issue #331 · EntityGraphQL/EntityGraphQL · GitHub

Open Graph Title: Improve error handling to allow users to make a decision on the type of error · Issue #331 · EntityGraphQL/EntityGraphQL

X Title: Improve error handling to allow users to make a decision on the type of error · Issue #331 · EntityGraphQL/EntityGraphQL

Description: I want to handle some of my own exceptions, but I can't do it yet, it seems like the system's try-catch feature is preventing it. I found it in the source code private async Task DoExecuteRequestAsync(QueryRequest gql, TCont...

Open Graph Description: I want to handle some of my own exceptions, but I can't do it yet, it seems like the system's try-catch feature is preventing it. I found it in the source code private async Task DoExe...

X Description: I want to handle some of my own exceptions, but I can't do it yet, it seems like the system's try-catch feature is preventing it. I found it in the source code private async Task<QueryRe...

Opengraph URL: https://github.com/EntityGraphQL/EntityGraphQL/issues/331

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve error handling to allow users to make a decision on the type of error","articleBody":"I want to handle some of my own exceptions, but I can't do it yet, it seems like the system's try-catch feature is preventing it.\r\nI found it in the source code\r\n```\r\n private async Task\u003cQueryResult\u003e DoExecuteRequestAsync(QueryRequest gql, TContextType? overwriteContext, IServiceProvider? serviceProvider, ClaimsPrincipal? user, ExecutionOptions? options)\r\n {\r\n     try\r\n     {\r\n         if (options == null)\r\n         {\r\n             options = new ExecutionOptions();\r\n         }\r\n\r\n         GraphQLDocument graphQLDocument = null;\r\n         if (options!.EnablePersistedQueries)\r\n         {\r\n             PersistedQueryExtension persistedQueryExtension = (PersistedQueryExtension)ExpressionUtil.ChangeType(gql.Extensions.GetValueOrDefault(\"persistedQuery\"), typeof(PersistedQueryExtension), null);\r\n             if (persistedQueryExtension != null \u0026\u0026 persistedQueryExtension.Version != 1)\r\n             {\r\n                 throw new EntityGraphQLExecutionException(\"PersistedQueryNotSupported\");\r\n             }\r\n\r\n             string text = persistedQueryExtension?.Sha256Hash;\r\n             if (text == null \u0026\u0026 gql.Query == null)\r\n             {\r\n                 throw new EntityGraphQLExecutionException(\"Please provide a persisted query hash or a query string\");\r\n             }\r\n\r\n             if (text != null)\r\n             {\r\n                 graphQLDocument = queryCache.GetCompiledQueryWithHash(text);\r\n                 if (graphQLDocument == null \u0026\u0026 gql.Query == null)\r\n                 {\r\n                     throw new EntityGraphQLExecutionException(\"PersistedQueryNotFound\");\r\n                 }\r\n\r\n                 if (graphQLDocument == null)\r\n                 {\r\n                     graphQLDocument = graphQLCompiler.Compile(gql, new QueryRequestContext(AuthorizationService, user));\r\n                     queryCache.AddCompiledQuery(text, graphQLDocument);\r\n                 }\r\n             }\r\n             else if (graphQLDocument == null)\r\n             {\r\n                 graphQLDocument = ((!options!.EnableQueryCache) ? graphQLCompiler.Compile(gql, new QueryRequestContext(AuthorizationService, user)) : CompileQueryWithCache(gql, user));\r\n             }\r\n         }\r\n         else if (options!.EnableQueryCache)\r\n         {\r\n             graphQLDocument = CompileQueryWithCache(gql, user);\r\n         }\r\n         else\r\n         {\r\n             if (gql.Query == null)\r\n             {\r\n                 if (((PersistedQueryExtension)ExpressionUtil.ChangeType(gql.Extensions.GetValueOrDefault(\"persistedQuery\"), typeof(PersistedQueryExtension), null))?.Sha256Hash != null)\r\n                 {\r\n                     throw new EntityGraphQLExecutionException(\"PersistedQueryNotSupported\");\r\n                 }\r\n\r\n                 throw new ArgumentNullException(\"Query\", \"Query must be set unless you are using persisted queries\");\r\n             }\r\n\r\n             graphQLDocument = graphQLCompiler.Compile(gql, new QueryRequestContext(AuthorizationService, user));\r\n         }\r\n\r\n         return await graphQLDocument.ExecuteQueryAsync(overwriteContext, serviceProvider, gql.Variables, gql.OperationName, options);\r\n     }\r\n     catch (Exception exception)\r\n     {\r\n         return HandleException(exception);\r\n     }\r\n }\r\n````","author":{"url":"https://github.com/soilidokay","@type":"Person","name":"soilidokay"},"datePublished":"2023-11-29T08:41:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/331/EntityGraphQL/issues/331"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1dde2aa2-f3bd-adaf-511e-e32cc3c5ff36
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id897A:18AA88:19A3CB7:246E651:6978D670
html-safe-noncecab9f491d81c440a7911ac359efe90b5a5330c66cc3091942f6131ce74b84ba9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTdBOjE4QUE4ODoxOUEzQ0I3OjI0NkU2NTE6Njk3OEQ2NzAiLCJ2aXNpdG9yX2lkIjoiNDIxMzAxNjI4OTUxNDkzNTkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacac9068bf9bf36a4eff78883dc0b26d389cd54866c9d09db606e9c8cbd5a18a8c
hovercard-subject-tagissue:2016085146
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/EntityGraphQL/EntityGraphQL/331/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ce5d51d5ad336430e8fe2e3921fda73d837e78aed92227ee1a7eb4666c564103/EntityGraphQL/EntityGraphQL/issues/331
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ce5d51d5ad336430e8fe2e3921fda73d837e78aed92227ee1a7eb4666c564103/EntityGraphQL/EntityGraphQL/issues/331
og:image:altI want to handle some of my own exceptions, but I can't do it yet, it seems like the system's try-catch feature is preventing it. I found it in the source code private async Task DoExe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesoilidokay
hostnamegithub.com
expected-hostnamegithub.com
None8a71ca1f7ab5436216e1df86f398ef7a51ed3152c90e3f7332fc70cf97fcb9d6
turbo-cache-controlno-preview
go-importgithub.com/EntityGraphQL/EntityGraphQL git https://github.com/EntityGraphQL/EntityGraphQL.git
octolytics-dimension-user_id87887288
octolytics-dimension-user_loginEntityGraphQL
octolytics-dimension-repository_id38514759
octolytics-dimension-repository_nwoEntityGraphQL/EntityGraphQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38514759
octolytics-dimension-repository_network_root_nwoEntityGraphQL/EntityGraphQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeaed570eead52a9920afef75dc3eb6d826fdc5ef
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/EntityGraphQL/EntityGraphQL/issues/331#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FEntityGraphQL%2FEntityGraphQL%2Fissues%2F331
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FEntityGraphQL%2FEntityGraphQL%2Fissues%2F331
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=EntityGraphQL%2FEntityGraphQL
Reloadhttps://github.com/EntityGraphQL/EntityGraphQL/issues/331
Reloadhttps://github.com/EntityGraphQL/EntityGraphQL/issues/331
Reloadhttps://github.com/EntityGraphQL/EntityGraphQL/issues/331
EntityGraphQL https://github.com/EntityGraphQL
EntityGraphQLhttps://github.com/EntityGraphQL/EntityGraphQL
Notifications https://github.com/login?return_to=%2FEntityGraphQL%2FEntityGraphQL
Fork 63 https://github.com/login?return_to=%2FEntityGraphQL%2FEntityGraphQL
Star 451 https://github.com/login?return_to=%2FEntityGraphQL%2FEntityGraphQL
Code https://github.com/EntityGraphQL/EntityGraphQL
Issues 10 https://github.com/EntityGraphQL/EntityGraphQL/issues
Pull requests 3 https://github.com/EntityGraphQL/EntityGraphQL/pulls
Actions https://github.com/EntityGraphQL/EntityGraphQL/actions
Security 0 https://github.com/EntityGraphQL/EntityGraphQL/security
Insights https://github.com/EntityGraphQL/EntityGraphQL/pulse
Code https://github.com/EntityGraphQL/EntityGraphQL
Issues https://github.com/EntityGraphQL/EntityGraphQL/issues
Pull requests https://github.com/EntityGraphQL/EntityGraphQL/pulls
Actions https://github.com/EntityGraphQL/EntityGraphQL/actions
Security https://github.com/EntityGraphQL/EntityGraphQL/security
Insights https://github.com/EntityGraphQL/EntityGraphQL/pulse
New issuehttps://github.com/login?return_to=https://github.com/EntityGraphQL/EntityGraphQL/issues/331
New issuehttps://github.com/login?return_to=https://github.com/EntityGraphQL/EntityGraphQL/issues/331
Improve error handling to allow users to make a decision on the type of errorhttps://github.com/EntityGraphQL/EntityGraphQL/issues/331#top
6.0https://github.com/EntityGraphQL/EntityGraphQL/milestone/5
https://github.com/soilidokay
https://github.com/soilidokay
soilidokayhttps://github.com/soilidokay
on Nov 29, 2023https://github.com/EntityGraphQL/EntityGraphQL/issues/331#issue-2016085146
6.0No due datehttps://github.com/EntityGraphQL/EntityGraphQL/milestone/5
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.