-
Couldn't load subscription status.
- Fork 3
Adds Error Content Support #15
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
Conversation
41f01f8 to
48468a1
Compare
|
please open issues to link these PRs to, so that work can be tracked. |
The issues are currently on the v1 repo. Working with the team to transfer all Core issues to this repo & switch to tracking high level goals using ZenHub |
…n for 5xx responses
48468a1 to
8afa691
Compare
|
@MIchaelMainer updated this PR to throw native |
@ddyett @shemogumbe @roinochieng Core issues have been transferred to this repo and linked to epics to the best of my knowledge (subject to review & change with the rest of the team) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conditionally approved per the answer to my question: This change brings up another consideration. GraphClientException::GraphResponseException is very appropriate for 4xx errors, how do we specify a client exception that does not represent a 4xx error response?
We may want something like:
GraphClientException::Exception -- exceptions that occur before an HTTP request is made, or more generally, applicable to how the client throws an exception independent of request/response.
GraphClientResponseException::GraphResponseException -- 4xx exception.
I'd like to get your thoughts.
Unable to figure out a use-case for a non-4xx client exception that wouldn't be covered by a native exception type e.g. InvalidArgumentException for validation errors etc. My understanding from the Teams thread was that all other exceptions would be native? |
|
That's fair. |
Throws a
GraphServiceExceptioncontaining an error object for 4xx and 5xx responsesCloses #19