PaySimple / PaySimpleSDK

.NET SDK for PaySimple API v4
Other
4 stars 1 forks source link

Fix rethrowing endpoint exceptions #3

Closed yadyn closed 7 years ago

yadyn commented 7 years ago

Any time PaySimple responded with a 400 Bad Request it was being wrapped in a PaySimpleEndpointException. However because of the try-catch block, it would always re-wrap it in another exception and lose the helpful ErrorResult information. I've added a catch-when to avoid this and properly preserve the original error info.

WillBDaniels commented 7 years ago

@yadyn Just wanted to let you know that we see this, and I'll be working on getting this added in asap! Thanks for the PR!