static void ThrowFailedToSendException(string address, Exception ex) { if (address == null) { throw new Exception("Failed to send message.", ex); } throw new Exception($"Failed to send message to address: {address}", ex); }