I would suggest something like TryGet pattern
https://stackoverflow.com/questions/37546622/best-...
The other option is a global catcher, catching not only the exception, but also through reflection the method that was called.
Or a wrapper that takes a lambda and repeats it several times on exceptions
https://stackoverflow.com/questions/37546622/best-...
The other option is a global catcher, catching not only the exception, but also through reflection the method that was called.
Or a wrapper that takes a lambda and repeats it several times on exceptions