
pl.allegro.tech.hermes.management.domain.topic.TopicRemovalDisabledException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.domain.topic;
import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.api.Topic;
import pl.allegro.tech.hermes.management.domain.ManagementException;
public class TopicRemovalDisabledException extends ManagementException {
public TopicRemovalDisabledException(Topic topic) {
super(
String.format(
"Could not remove topic %s, this operation is currently disabled.",
topic.getQualifiedName()));
}
@Override
public ErrorCode getCode() {
return ErrorCode.OPERATION_DISABLED;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy