Force.com-Toolkit-for-NET icon indicating copy to clipboard operation
Force.com-Toolkit-for-NET copied to clipboard

Client throwing exceptions instead of using Response.Success

Open robertmclaws opened this issue 9 years ago • 3 comments

So, in looking at the ForceClient API and the different responses that are available, there is a "Success" flag and an Errors object.

In my experience actually using the client, however, those properties are totally useless. Because if there is an error during the request, the client throws an Exception that bypasses all of my code to handle the SuccessResponse object.

It appears that one of two things needs to happen: either fix the behavior so that the SuccessResponse object is utilized consistently in all scenarios, or the SuccessResponse object itself needs to be removed, and any exceptions thrown by a method need to be documented in XML documentation comments.

Thanks!

robertmclaws avatar Sep 19 '16 18:09 robertmclaws

I'd love someone to contribute an enhancement here.

wadewegner avatar Aug 17 '18 23:08 wadewegner

@robertmclaws Is this something you'd be willing to contribute? I agree with you and I'd love to see this resolved.

wadewegner avatar Aug 20 '18 14:08 wadewegner

Sure I'm happy to help figure it out.

robertmclaws avatar Aug 20 '18 17:08 robertmclaws