All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.infrastructure.zookeeper.counter.ZookeeperCounterException Maven / Gradle / Ivy

The newest version!
package pl.allegro.tech.hermes.infrastructure.zookeeper.counter;

import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.common.exception.HermesException;

@SuppressWarnings("serial")
public class ZookeeperCounterException extends HermesException {

  public ZookeeperCounterException(String key, String message) {
    super("Exception while trying to access counter " + key + " via Zookeeper. " + message);
  }

  public ZookeeperCounterException(String key, Throwable cause) {
    super("Exception while trying to access counter " + key + " via Zookeeper.", cause);
  }

  @Override
  public ErrorCode getCode() {
    return ErrorCode.INTERNAL_ERROR;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy