Skip to content

How to handle errors with this library? #165

@bdelavega-maralytix

Description

@bdelavega-maralytix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions