amittleider / AutoFinance.Broker

A Dotnet Core library to interact with Interactive Broker's Trader Workstation (IB TWS)
32 stars 16 forks source link

Add more information to the error TwsException #30

Closed popojargo closed 4 years ago

popojargo commented 4 years ago

When doing error handling, it's hard to know the cause of the error since the TwsException only contains a error message.

I've added the ErrorEventArgs information to the TwsException so we can at least know the error code.

This is non-breaking as the old TwsException constructor remains and the new fields are optional.