Class 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.
Inheritance
OperationInterruptedException
Inherited Members
Namespace: RabbitMQ.Client.Exceptions
Assembly: RabbitMQ.Client.dll
Syntax
[Serializable]
public class OperationInterruptedException : RabbitMQClientException, ISerializable, _Exception
Constructors
| Edit this page View SourceOperationInterruptedException()
Declaration
protected OperationInterruptedException()
OperationInterruptedException(ShutdownEventArgs)
Construct an OperationInterruptedException with the passed-in explanation, if any.
Declaration
public OperationInterruptedException(ShutdownEventArgs reason)
Parameters
Type | Name | Description |
---|---|---|
ShutdownEventArgs | reason |
OperationInterruptedException(ShutdownEventArgs, string)
Construct an OperationInterruptedException with the passed-in explanation and prefix, if any.
Declaration
public OperationInterruptedException(ShutdownEventArgs reason, string prefix)
Parameters
Type | Name | Description |
---|---|---|
ShutdownEventArgs | reason | |
string | prefix |
OperationInterruptedException(string)
Declaration
protected OperationInterruptedException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
OperationInterruptedException(string, Exception)
Declaration
protected OperationInterruptedException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
Exception | inner |
Properties
| Edit this page View SourceShutdownReason
Retrieves the explanation for the shutdown. May return null if no explanation is available.
Declaration
public ShutdownEventArgs ShutdownReason { get; protected set; }
Property Value
Type | Description |
---|---|
ShutdownEventArgs |