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

pl.allegro.tech.hermes.domain.workload.constraints.TopicConstraintsAlreadyExistException Maven / Gradle / Ivy

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;

public class TopicConstraintsAlreadyExistException extends HermesException {
    public TopicConstraintsAlreadyExistException(TopicName topicName, Throwable cause) {
        super(String.format("Constraints for topic %s already exist.", topicName.qualifiedName()), cause);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy