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

pl.allegro.tech.hermes.domain.group.GroupNotEmptyException Maven / Gradle / Ivy

There is a newer version: 2.6.21
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy