Adds Error Content Support#15
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.
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