Class ChannelAllocationException
Thrown when a SessionManager cannot allocate a new channel number, or the requested channel number is already in use.
Inheritance
ChannelAllocationException
Inherited Members
Namespace: RabbitMQ.Client.Exceptions
Assembly: RabbitMQ.Client.dll
Syntax
[Serializable]
public class ChannelAllocationException : ProtocolViolationException, ISerializable, _Exception
Constructors
| Edit this page View SourceChannelAllocationException()
Indicates that there are no more free channels.
Declaration
public ChannelAllocationException()
ChannelAllocationException(int)
Indicates that the specified channel is in use
Declaration
public ChannelAllocationException(int channel)
Parameters
Type | Name | Description |
---|---|---|
int | channel | The requested channel number |
Properties
| Edit this page View SourceChannel
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.
Declaration
public int Channel { get; }
Property Value
Type | Description |
---|---|
int |