{"action":"created","issue":{"url":"https://api.github.com/repos/ChilliCream/hotchocolate/issues/317","repository_url":"https://api.github.com/repos/ChilliCream/hotchocolate","labels_url":"https://api.github.com/repos/ChilliCream/hotchocolate/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/ChilliCream/hotchocolate/issues/317/comments","events_url":"https://api.github.com/repos/ChilliCream/hotchocolate/issues/317/events","html_url":"https://github.com/ChilliCream/hotchocolate/issues/317","id":375868540,"node_id":"MDU6SXNzdWUzNzU4Njg1NDA=","number":317,"title":"Custom Exception Handler","user":{"login":"namnm","id":8970908,"node_id":"MDQ6VXNlcjg5NzA5MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/8970908?v=4","gravatar_id":"","url":"https://api.github.com/users/namnm","html_url":"https://github.com/namnm","followers_url":"https://api.github.com/users/namnm/followers","following_url":"https://api.github.com/users/namnm/following{/other_user}","gists_url":"https://api.github.com/users/namnm/gists{/gist_id}","starred_url":"https://api.github.com/users/namnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namnm/subscriptions","organizations_url":"https://api.github.com/users/namnm/orgs","repos_url":"https://api.github.com/users/namnm/repos","events_url":"https://api.github.com/users/namnm/events{/privacy}","received_events_url":"https://api.github.com/users/namnm/received_events","type":"User","site_admin":false},"labels":[{"id":801695617,"node_id":"MDU6TGFiZWw4MDE2OTU2MTc=","url":"https://api.github.com/repos/ChilliCream/hotchocolate/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":946907147,"node_id":"MDU6TGFiZWw5NDY5MDcxNDc=","url":"https://api.github.com/repos/ChilliCream/hotchocolate/labels/in%20progress","name":"in progress","color":"7fcc37","default":false}],"state":"open","locked":false,"assignee":{"login":"michaelstaib","id":9714350,"node_id":"MDQ6VXNlcjk3MTQzNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9714350?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelstaib","html_url":"https://github.com/michaelstaib","followers_url":"https://api.github.com/users/michaelstaib/followers","following_url":"https://api.github.com/users/michaelstaib/following{/other_user}","gists_url":"https://api.github.com/users/michaelstaib/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelstaib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelstaib/subscriptions","organizations_url":"https://api.github.com/users/michaelstaib/orgs","repos_url":"https://api.github.com/users/michaelstaib/repos","events_url":"https://api.github.com/users/michaelstaib/events{/privacy}","received_events_url":"https://api.github.com/users/michaelstaib/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaelstaib","id":9714350,"node_id":"MDQ6VXNlcjk3MTQzNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9714350?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelstaib","html_url":"https://github.com/michaelstaib","followers_url":"https://api.github.com/users/michaelstaib/followers","following_url":"https://api.github.com/users/michaelstaib/following{/other_user}","gists_url":"https://api.github.com/users/michaelstaib/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelstaib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelstaib/subscriptions","organizations_url":"https://api.github.com/users/michaelstaib/orgs","repos_url":"https://api.github.com/users/michaelstaib/repos","events_url":"https://api.github.com/users/michaelstaib/events{/privacy}","received_events_url":"https://api.github.com/users/michaelstaib/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ChilliCream/hotchocolate/milestones/16","html_url":"https://github.com/ChilliCream/hotchocolate/milestone/16","labels_url":"https://api.github.com/repos/ChilliCream/hotchocolate/milestones/16/labels","id":3693724,"node_id":"MDk6TWlsZXN0b25lMzY5MzcyNA==","number":16,"title":"0.7.0","description":"","creator":{"login":"michaelstaib","id":9714350,"node_id":"MDQ6VXNlcjk3MTQzNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9714350?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelstaib","html_url":"https://github.com/michaelstaib","followers_url":"https://api.github.com/users/michaelstaib/followers","following_url":"https://api.github.com/users/michaelstaib/following{/other_user}","gists_url":"https://api.github.com/users/michaelstaib/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelstaib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelstaib/subscriptions","organizations_url":"https://api.github.com/users/michaelstaib/orgs","repos_url":"https://api.github.com/users/michaelstaib/repos","events_url":"https://api.github.com/users/michaelstaib/events{/privacy}","received_events_url":"https://api.github.com/users/michaelstaib/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":20,"state":"open","created_at":"2018-09-27T14:22:21Z","updated_at":"2018-12-20T13:39:02Z","due_on":"2019-01-10T08:00:00Z","closed_at":null},"comments":9,"created_at":"2018-10-31T09:24:45Z","updated_at":"2018-12-20T13:49:58Z","closed_at":null,"author_association":"NONE","body":"**Is your feature request related to a problem? Please describe.**\r\nThanks for the great package. Now I want to response the error based on some custom exceptions I threw.\r\n\r\n**Describe the solution you'd like**\r\nIt should expose the default spec-compliant formatError function as: `https://github.com/graphql/graphql-js/blob/master/src/error/formatError.js` \r\nThen it should allow to pass a custom formatError function to handle the error in the schema constructor.\r\n"},"comment":{"url":"https://api.github.com/repos/ChilliCream/hotchocolate/issues/comments/449005298","html_url":"https://github.com/ChilliCream/hotchocolate/issues/317#issuecomment-449005298","issue_url":"https://api.github.com/repos/ChilliCream/hotchocolate/issues/317","id":449005298,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTAwNTI5OA==","user":{"login":"michaelstaib","id":9714350,"node_id":"MDQ6VXNlcjk3MTQzNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9714350?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelstaib","html_url":"https://github.com/michaelstaib","followers_url":"https://api.github.com/users/michaelstaib/followers","following_url":"https://api.github.com/users/michaelstaib/following{/other_user}","gists_url":"https://api.github.com/users/michaelstaib/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelstaib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelstaib/subscriptions","organizations_url":"https://api.github.com/users/michaelstaib/orgs","repos_url":"https://api.github.com/users/michaelstaib/repos","events_url":"https://api.github.com/users/michaelstaib/events{/privacy}","received_events_url":"https://api.github.com/users/michaelstaib/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T13:49:58Z","updated_at":"2018-12-20T13:49:58Z","author_association":"COLLABORATOR","body":"Where can errors happen?\r\n\r\nBasically errors can be provided as QueryException or as IError.\r\n\r\nAn error or exception can occur in the execution pipeline itself which could be handled in the ExceptionMiddleware.\r\n\r\nMoreover, exceptions could occur when execution a field resolver pipeline. Also, the result of the  field resolver pipeline could be an `IError`. \r\n\r\n- [ ] Check if the field resolver exception are already serialized into an `IError`\r\n- [ ] Check how the validation errors are handled\r\n\r\nIdeally we can grab errors in a maximum of two or three places.\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"michaelstaib"}}