Example usage for org.apache.zookeeper KeeperException.BadArgumentsException getMessage

List of usage examples for org.apache.zookeeper KeeperException.BadArgumentsException getMessage

Introduction

In this page you can find the example usage for org.apache.zookeeper KeeperException.BadArgumentsException getMessage.

Prototype

@Override
    public String getMessage() 

Source Link

Usage

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;
        }
    }
}