private static Exception TranslateSdkException()

in DeviceBridge/Services/ConnectionManager.cs [863:873]


        private static Exception TranslateSdkException(Exception e, string deviceId)
        {
            if (e is IotHubCommunicationException && e.InnerException is TimeoutException)
            {
                throw new DeviceSdkTimeoutException(deviceId);
            }
            else
            {
                throw e; // If we don't know this particular exception type, throw as is.
            }
        }