IllegalArgumentException - if the port parameter is outside the specified range of valid port values.
如果端口号超出指定的有效端口值范围时抛出。
IllegalArgumentException - if some aspect of the specified element prevents it from being added to this list.
如果指定元素的某些方面不允许它加入当前列表则抛出。
IllegalArgumentException - some aspect of an element of the specified collection prevents it from being added to this collection.
如果指定集合的某个元素的某些方面不允许它加入当前集合则抛出。
应用推荐