Key Info Loss in Error & Exception Analyzing, please refine your Classes.
-
When Error Occurs, there are often error status codes, these are very important for error analysis. However when Exception happens, it returns a default null object and return and omit the error.
-
HttpProvider Class SendAsync method, when error occurs, it drop out the response and customize some hand-made errors, Graph with send some analysis messages in the response body along with status code when error happens, if you drop out these messages, these error details are dropped out!
Expected behavior
- Append raw response into ServiceException, and let it pop up to user level.
Actual behavior
- call api will always return a good value or a null value.
Steps to reproduce the behavior
- Every call to api
@crazygao Thank you for taking your time to bring this to our attention. We are aware of these current limits around error reporting. It would be a useful option to append the raw response to the ServiceException class.