pl.allegro.tech.hermes.domain.subscription.SubscriptionNotExistsException 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.subscription;
import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.common.exception.HermesException;
public class SubscriptionNotExistsException extends HermesException {
public SubscriptionNotExistsException(TopicName topic, String subscription) {
super(String.format("Subscription %s for topic %s does not exist.", subscription, topic.qualifiedName()));
}
@Override
public ErrorCode getCode() {
return ErrorCode.SUBSCRIPTION_NOT_EXISTS;
}
}