Class ChannelAllocationException
- Namespace
- RabbitMQ.Client.Exceptions
- Assembly
- RabbitMQ.Client.dll
Thrown when a SessionManager cannot allocate a new channel number, or the requested channel number is already in use.
[Serializable]
public class ChannelAllocationException : ProtocolViolationException, ISerializable, _Exception
- Inheritance
-
ChannelAllocationException
- Implements
- Inherited Members
Constructors
ChannelAllocationException()
Indicates that there are no more free channels.
public ChannelAllocationException()
ChannelAllocationException(int)
Indicates that the specified channel is in use
public ChannelAllocationException(int channel)
Parameters
channel
intThe requested channel number
Properties
Channel
Retrieves the channel number concerned; will return -1 in the case where "no more free channels" is being signaled, or a non-negative integer when "channel is in use" is being signaled.
public int Channel { get; }