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

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

The 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 GroupAlreadyExistsException extends HermesException {

    public GroupAlreadyExistsException(String groupName) {
        super(String.format("Group %s already exists", groupName));
    }

    public GroupAlreadyExistsException(String groupName, Throwable cause) {
        super(String.format("Group %s already exists", groupName), cause);
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy