Skip to content

Commit 0a4f08b

Browse files
author
madun
committed
style:
1、modify IllegalStateException to IllegalArgumentException
1 parent c80afcf commit 0a4f08b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rabbitmq/client/impl/ChannelManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public ChannelManager(ConsumerWorkService workService, int channelMax, ThreadFac
7171

7272
public ChannelManager(ConsumerWorkService workService, int channelMax, ThreadFactory threadFactory, MetricsCollector metricsCollector) {
7373
if (channelMax < 0)
74-
throw new IllegalStateException("create ChannelManager: 'channelMax' must be greater or equal to 0.");
74+
throw new IllegalArgumentException("create ChannelManager: 'channelMax' must be greater or equal to 0.");
7575
if (channelMax == 0) {
7676
// The framing encoding only allows for unsigned 16-bit integers
7777
// for the channel number

0 commit comments

Comments
 (0)