ModbusTcpClient .Initialize
throws Exception
-> hard to catch / determine what went wrong
#139
Labels
ModbusTcpClient .Initialize
throws Exception
-> hard to catch / determine what went wrong
#139
Hey @Apollo3zehn 👋
First, great library - thanks for maintaining.
We are having a small problem with
Initialize
on theModbusTcpClient
. We want to periodically retry to connect if connecting fails. We could do that by wrapping the call to initialise in a try catch, the issue is that we'd need to catch all exceptions.FluentModbus/src/FluentModbus/Client/ModbusTcpClient.cs
Lines 170 to 171 in bbd7dcd
It would be nice to throw a special kind of exception here so that we can only catch e.g.
FluentModbusException
instead ofException
.What do you think?
Are we completely missing something here?
The text was updated successfully, but these errors were encountered: