List of usage examples for org.apache.solr.common.cloud ZooKeeperException ZooKeeperException
public ZooKeeperException(ErrorCode code, String msg, Throwable th)
From source file:com.ngdata.hbaseindexer.util.solr.SolrConfigLoader.java
License:Apache License
@Override public String[] listConfigDir() { List<String> list; try {// w w w. ja v a2s . c om list = zk.getChildren(configZkPath, false, null); } catch (InterruptedException e) { // Restore the interrupted status Thread.currentThread().interrupt(); log.error("", e); throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, "", e); } catch (KeeperException e) { log.error("", e); throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, "", e); } return list.toArray(new String[0]); }