
pl.allegro.tech.hermes.infrastructure.zookeeper.counter.ZookeeperCounterException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-common Show documentation
Show all versions of hermes-common Show documentation
Fast and reliable message broker built on top of Kafka.
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