NServiceBus.RabbitMQ
NServiceBus.RabbitMQ copied to clipboard
Better exception message for queue not found when configuring transport
In the webinar Live coding: NServiceBus in the real world, starting at about 14:30 I start showing how to change from LearningTransport to RabbitMQTransport. The first two exceptions (to provide a connection string, and then a routing topology) are great but then at 17:25 I get an exception that's not so nice:
RabbitMQ.Client.Exceptions.OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=404, text='NOT_FOUND - no queue 'Shipping' in vhost '/'", classId=60, methodId=20'
We should be able to catch this exception, look at whether installers are enabled from settings, and then give a much better exception message that talks about using EnableInstallers() vs creating queues beforehand.