public void OnException(ITransport sender, Exception error) { try { HandleTransportFailure(error); } catch(Exception e) { e.GetType(); // What to do here? } }