pl.allegro.tech.hermes.domain.group.GroupNotEmptyException 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.
package pl.allegro.tech.hermes.domain.group;
import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.common.exception.HermesException;
public class GroupNotEmptyException extends HermesException {
public GroupNotEmptyException(String groupName) {
super(String.format("Group %s is not empty", groupName));
}
@Override
public ErrorCode getCode() {
return ErrorCode.GROUP_NOT_EMPTY;
}
}