List of usage examples for org.apache.zookeeper KeeperException.BadArgumentsException getMessage
@Override
public String getMessage()
From source file:com.indoqa.zookeeper.config.states.DeleteServiceDescriptionsState.java
License:Apache License
@Override protected void onStart() throws KeeperException { super.onStart(); this.terminate(); this.ensureNodeExists("/"); List<String> children = this.getChildren("/"); for (String eachChild : children) { this.logger.info("Deleting service description '{}' ...", eachChild); try {/*from w w w .j a v a 2 s . c o m*/ this.deleteNodeStructure(combinePath("/", eachChild)); } catch (KeeperException.BadArgumentsException e) { this.logger.error("Caught '{}'. Did you try to delete the zookeeper node?", e.getMessage(), e); break; } } }