Table of Contents

Class OperationInterruptedException

Namespace
RabbitMQ.Client.Exceptions
Assembly
RabbitMQ.Client.dll

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 IChannel.QueueDeclare.

[Serializable]
public class OperationInterruptedException : RabbitMQClientException, ISerializable
Inheritance
OperationInterruptedException
Implements
Derived
Inherited Members

Constructors

OperationInterruptedException()

Construct an OperationInterruptedException

public OperationInterruptedException()

OperationInterruptedException(ShutdownEventArgs)

Construct an OperationInterruptedException with the passed-in explanation, if any.

public OperationInterruptedException(ShutdownEventArgs reason)

Parameters

reason ShutdownEventArgs

OperationInterruptedException(ShutdownEventArgs, string)

Construct an OperationInterruptedException with the passed-in explanation and prefix, if any.

public OperationInterruptedException(ShutdownEventArgs reason, string prefix)

Parameters

reason ShutdownEventArgs
prefix string

Properties

ShutdownReason

Retrieves the explanation for the shutdown. May return null if no explanation is available.

public ShutdownEventArgs? ShutdownReason { get; protected set; }

Property Value

ShutdownEventArgs