Skip to content

Commit f52324a

Browse files
madunacogoluegnes
madun
authored andcommitted
style:
1、modify IllegalStateException to IllegalArgumentException (cherry picked from commit 0a4f08b)
1 parent 9131c78 commit f52324a

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)