Skip to content

How to handle errors with this library? #165

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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