Better exception message
This commit is contained in:
parent
17c0722862
commit
b165134044
@ -256,7 +256,7 @@ public final class Bootstrap extends AbstractBootstrap<Bootstrap, Channel> {
|
|||||||
throw new IllegalStateException("handler not set");
|
throw new IllegalStateException("handler not set");
|
||||||
}
|
}
|
||||||
if (channelFactory == null) {
|
if (channelFactory == null) {
|
||||||
throw new IllegalStateException("factory not set");
|
throw new IllegalStateException("channel or channelFactory not set");
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
|
|||||||
childGroup = group();
|
childGroup = group();
|
||||||
}
|
}
|
||||||
if (channelFactory == null) {
|
if (channelFactory == null) {
|
||||||
throw new IllegalStateException("factory not set");
|
throw new IllegalStateException("channel or channelFactory not set");
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user