We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c80afcf commit 0a4f08bCopy full SHA for 0a4f08b
src/main/java/com/rabbitmq/client/impl/ChannelManager.java
@@ -71,7 +71,7 @@ public ChannelManager(ConsumerWorkService workService, int channelMax, ThreadFac
71
72
public ChannelManager(ConsumerWorkService workService, int channelMax, ThreadFactory threadFactory, MetricsCollector metricsCollector) {
73
if (channelMax < 0)
74
- throw new IllegalStateException("create ChannelManager: 'channelMax' must be greater or equal to 0.");
+ throw new IllegalArgumentException("create ChannelManager: 'channelMax' must be greater or equal to 0.");
75
if (channelMax == 0) {
76
// The framing encoding only allows for unsigned 16-bit integers
77
// for the channel number
0 commit comments