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

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

There is a newer version: 2.6.21
Show newest version
package pl.allegro.tech.hermes.domain.workload.constraints;

import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.api.SubscriptionName;
import pl.allegro.tech.hermes.common.exception.HermesException;

import static pl.allegro.tech.hermes.api.ErrorCode.SUBSCRIPTION_CONSTRAINTS_ALREADY_EXIST;

public class SubscriptionConstraintsAlreadyExistException extends HermesException {

    public SubscriptionConstraintsAlreadyExistException(SubscriptionName subscriptionName, Throwable cause) {
        super(String.format("Constraints for subscription %s already exist.", subscriptionName.getQualifiedName()), cause);
    }

    @Override
    public ErrorCode getCode() {
        return SUBSCRIPTION_CONSTRAINTS_ALREADY_EXIST;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy