Table of Contents

Class UnknownClassOrMethodException

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

Thrown when the protocol handlers detect an unknown class number or method number.

public class UnknownClassOrMethodException : HardProtocolException, ISerializable, _Exception
Inheritance
UnknownClassOrMethodException
Implements
Inherited Members

Constructors

UnknownClassOrMethodException(ushort, ushort)

public UnknownClassOrMethodException(ushort classId, ushort methodId)

Parameters

classId ushort
methodId ushort

Properties

ClassId

The AMQP content-class ID.

public ushort ClassId { get; }

Property Value

ushort

MethodId

The AMQP method ID within the content-class, or 0 if none.

public ushort MethodId { get; }

Property Value

ushort

ReplyCode

Retrieve the reply code to use in a connection/channel close method.

public override ushort ReplyCode { get; }

Property Value

ushort

Methods

ToString()

Creates and returns a string representation of the current exception.

public override string ToString()

Returns

string

A string representation of the current exception.