public delegate void ExceptionInEventEventHandler(
FlowSshNet events are invoked by internal FlowSshC worker threads. If an uncaught exception happens while triggering an event or while executing one of your delegates, this exception triggers another event, the [SshNet]OnExceptionInEvent. With [SshNet]OnExceptionInEvent you get informed about uncaught exceptions that you would not notice otherwise. One should always register to [SshNet]OnExceptionInEvent before using any other FlowSshNet functionality. Usually such uncaught exceptions are simply logged so the flawed delegate implementation can possibly be fixed later. For fatal internal errors one should also terminate the application, as FlowSshNet is left in an unusable state.
Important: Never throw exceptions from this delegate, because they cannot be handled by the application.