Class RabbitMQUnroutableException
A mandatory publish came back from the broker (basic.return): no queue takes it for its exchange and routing
key, so it was not delivered. Every publish path throws it — an immediate send, a request-reply call and the sends
of a transacted block — so one OnException<RabbitMQUnroutableException> covers all of them.
public sealed class RabbitMQUnroutableException : Exception, ISerializable
Inheritance
Implements
Properties
Exchange
The exchange the message was published to; empty for the default exchange.
public string Exchange { get; }
ReplyCode
The broker's reply code, 312 (NO_ROUTE) for an unroutable message.
public ushort ReplyCode { get; }
Constructors
RabbitMQUnroutableException(string, string, string, ushort, string, Exception?)
Creates the exception for a returned publish.