NServiceBus.MsmqMessageDispatcher.ThrowFailedToSendException C# (CSharp) Method

ThrowFailedToSendException() static private method

static private ThrowFailedToSendException ( string address, Exception ex ) : void
address string
ex System.Exception
return void
        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);
        }