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

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

Constructors

OperationInterruptedException()

protected 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

OperationInterruptedException(string)

protected OperationInterruptedException(string message)

Parameters

message string

OperationInterruptedException(string, Exception)

protected OperationInterruptedException(string message, Exception inner)

Parameters

message string
inner Exception

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