pl.allegro.tech.hermes.domain.workload.constraints.TopicConstraintsDoNotExistException 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.domain.workload.constraints;
import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.common.exception.HermesException;
import static pl.allegro.tech.hermes.api.ErrorCode.TOPIC_CONSTRAINTS_DO_NOT_EXIST;
public class TopicConstraintsDoNotExistException extends HermesException {
public TopicConstraintsDoNotExistException(TopicName topicName, Throwable cause) {
super(String.format("Constraints for topic %s do not exist.", topicName.qualifiedName()), cause);
}
@Override
public ErrorCode getCode() {
return TOPIC_CONSTRAINTS_DO_NOT_EXIST;
}
}