private void validatePort(int port) {
    if (port <= 0) {
      throw new IllegalArgumentException("port must be greater than 0 but was " + port);
    }
  }
The cache that created this factory
geode-core/src/main/java/org/apache/geode/internal/cache/PoolFactoryImpl.java