Table of Contents

Class AmqpMessageRejectedException

Namespace
RabbitMQ.AMQP.Client
Assembly
RabbitMQ.AMQP.Client.dll

Exception thrown when a message is rejected by the broker. Available when a PublishOutcome has state Rejected and the broker provided rejection details (requires RabbitMQ 4.3 or later).

public class AmqpMessageRejectedException : Exception, ISerializable
Inheritance
AmqpMessageRejectedException
Implements
Inherited Members

Constructors

AmqpMessageRejectedException(string?, string?, string?)

public AmqpMessageRejectedException(string? message, string? rejectedBy, string? reason)

Parameters

message string
rejectedBy string
reason string

Properties

Reason

public string? Reason { get; }

Property Value

string

RejectedBy

The name of the queue that rejected the message, if provided by the broker.

public string? RejectedBy { get; }

Property Value

string