Skip to content
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

How to handle errors with this library? #165

Open
bdelavega-maralytix opened this issue Dec 31, 2020 · 0 comments
Open

How to handle errors with this library? #165

bdelavega-maralytix opened this issue Dec 31, 2020 · 0 comments

Comments

@bdelavega-maralytix
Copy link

I'm not sure whether to write an issue or just a question. We've used this library a fair bit, but now I'm trying to troubleshoot errors and don't see how.

Take for example Intercom.Clients.UsersClient.cs. Many methods end with code like this:
ClientResponse result = null;
result = ...
return result.Result;

So an Intercom.Core.ClientResponse is created (which has 3 properties), but only the Result property is returned. If something goes wrong, I'd like to see the Errors and Response properties too. Have you considered providing those?

If not, do you have any advice for the library's consumer on troubleshooting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant