semashkinvg / Bitmex.NET

Wrapper for BitMEX.com REST & WebSocket API
MIT License
52 stars 26 forks source link

BitmexApiProxy exceptions are not dejsonized #4

Closed andrzej-suwala closed 6 years ago

andrzej-suwala commented 6 years ago

Hi !

In BitmexApiProxy exceptions in POST, PUT and DELETE are not dejsonized, and are thrown as System.Exception.

It would be great if those exceptions followed the pattern used in GET, and was thrown as BitmexApiException.

That way only one exception handling pattern could be used in client code. :smile:

semashkinvg commented 6 years ago

good point, thank you a lot! the issue will be prioritazed