Namespace RabbitMQ.Client.Exceptions

Summary

Public API for exceptions visible to the user of the AMQP client library.

Types

Type Summary
AlreadyClosedException

Thrown when the application tries to make use of a session or connection that has already been shut down.

BrokerUnreachableException

Thrown when no connection could be opened during a ConnectionFactory.CreateConnection attempt.

ChannelAllocationException

Thrown when a SessionManager cannot allocate a new channel number, or the requested channel number is already in use.

OperationInterruptedException

Thrown when a session is destroyed during an RPC call to a broker. For example, if a TCP connection dropping causes the destruction of a session in the middle of a QueueDeclare operation, an OperationInterruptedException will be thrown to the caller of IModel.QueueDeclare.

PacketNotRecognizedException

Thrown to indicate that the peer didn't understand the packet received from the client. Peer sent default message describing protocol version it is using and transport parameters.

PossibleAuthenticationFailureException

Thrown when the likely cause is an authentication failure.

ProtocolVersionMismatchException

Thrown to indicate that the peer does not support the wire protocol version we requested immediately after opening the TCP socket.

UnexpectedMethodException

Thrown when the model receives an RPC reply that it wasn't expecting.

UnsupportedMethodException

Thrown when the model receives an RPC request it cannot satisfy.

UnsupportedMethodFieldException

Thrown when the model cannot transmit a method field because the version of the protocol the model is implementing does not contain a definition for the field in question.

WireFormattingException

Thrown when the wire-formatting code cannot encode a particular .NET value to AMQP protocol format.