Class ProtocolException
Instances of subclasses of subclasses HardProtocolException and SoftProtocolException are thrown in situations when we detect a problem with the connection-, channel- or wire-level parts of the AMQP protocol.
Inheritance
ProtocolException
Inherited Members
Namespace: RabbitMQ.Client.Exceptions
Assembly: RabbitMQ.Client.dll
Syntax
public abstract class ProtocolException : RabbitMQClientException, ISerializable, _Exception
Constructors
| Edit this page View SourceProtocolException(string)
Declaration
protected ProtocolException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |
Properties
| Edit this page View SourceReplyCode
Retrieve the reply code to use in a connection/channel close method.
Declaration
public abstract ushort ReplyCode { get; }
Property Value
Type | Description |
---|---|
ushort |
ShutdownReason
Retrieve the shutdown details to use in a connection/channel close method. Defaults to using ShutdownInitiator.Library, and this.ReplyCode and this.Message as the reply code and text, respectively.
Declaration
public virtual ShutdownEventArgs ShutdownReason { get; }
Property Value
Type | Description |
---|---|
ShutdownEventArgs |